Update ds_leveldb.c

Sync'd with mdhim-tng