I have solved this problem, it takes me a whole day...
error 87 is CURSSOR_FULL, It may be an bug of old version lmdb, when file size up to 2GB.
By the way, different from the old one, new lmdb malloc disk space at first, due to the LMDB_MAP_SIZE you set, even your dataset's real size is smaller.
在 2016年11月2日星期三 UTC+8下午1:09:24,Albert Diao写道: