Alex
Alex

Reputation: 1

How does LMDB write to the database with a read-only mmap?

I am starting to learn about LMDB, but I am having trouble understanding how LMDB writes to a read-only mmap (read-only is the default configuration). Does anyone have a simple explanation as to how this works?

Upvotes: 0

Views: 400

Answers (1)

Timothy Baldwin
Timothy Baldwin

Reputation: 3675

It uses the filesystem API to write, preferentially pwritev on Unix.

Upvotes: 1

Related Questions