(#1936) inclusive_end implementation for leveldb adapter