How do you guard against corruption after data left your control?

Reply to this note

Please Login to reply.

Discussion

lmdb guarantees that when you have a pointer to a page it will remain there until the lifetime of the program. It has copy on write semantics when updating records. Notes are immutable anyways so this is not a problem.

Immutability is awesome

So that was a lie. It only guarantees pointer validity during the transaction or until the next write, i guess lmdb moves pages around