Please test the current head. c_get(key,data,DB_LAST) was changed to c_put(key,NOID,DB_KEYLAST); c_get(key,data,DB_PREV). I haven't test this patch on platforms other than Linux/glibc, though.