Fix LSMDB data loss, but now compaction is wrong and writes are slow.
Fix LSMDB data loss, but now compaction is wrong and writes are slow.

Lacra17/stronglink,iOSCowboy/stronglink,yamingd/stronglink,btrask/stronglink,feld/stronglink,guiquanz/stronglink,Ryezhang/stronglink,guiquanz/stronglink,shaunstanislaus/stronglink,Lacra17/stronglink,nkatsaros/stronglink,feld/stronglink,Ryezhang/stronglink,rmoorman/stronglink,Ryezhang/stronglink,shaunstanislaus/stronglink,iOSCowboy/stronglink,nkatsaros/stronglink,btrask/stronglink,guiquanz/stronglink,yamingd/stronglink,shaunstanislaus/stronglink,iOSCowboy/stronglink,rmoorman/stronglink,feld/stronglink,btrask/stronglink,Lacra17/stronglink,rmoorman/stronglink,nkatsaros/stronglink,btrask/stronglink,yamingd/stronglink