Lmdb (Symbian Lightning Memory-Mapped Database) not running on CentOS

The lmdb code is obtained from the official git repository.

https://gitorious.org/mdb

It does not work with my project returning mdb_env_open code 38.

The test code shipped with lmdb does not work.

The error code is also 38, the error message is "Function not implemented."

The same code compiled on ubuntu works fine.

A bit of lmdb documentation, I can't even find what it means to get return code 38, and there is no corresponding tag in stackoverflow.

Any experts there?

==================================================== ====

I understand that it was because of NFS that moving the database to local storage solved this problem. But is there any solution I can use in NFS? Local storage space is too small.

+4
source share
1 answer

On the first page of the document: http://symas.com/mdb/doc/

Do not use LMDB databases for remote file systems, even between processes on the same host. This interrupts flock () on some operating systems, possibly synchronizing a memory card and, of course, synchronizes between programs on different hosts.

+7
source

Source: https://habr.com/ru/post/1548030/


All Articles