MB-16663: Return only non-deleted keys in CMD_GET_KEYS
[ep-engine.git] / src / couch-kvstore / couch-kvstore.cc
index 7c856ad..bb29402 100644 (file)
@@ -2413,7 +2413,7 @@ CouchKVStore::getAllKeys(uint16_t vbid, std::string &start_key, uint32_t count,
         ref.buf = (char*) start_key.c_str();
         ref.size = start_key.size();
         AllKeysCtx ctx(cb, count);
         ref.buf = (char*) start_key.c_str();
         ref.size = start_key.size();
         AllKeysCtx ctx(cb, count);
-        errCode = couchstore_all_docs(db, &ref, COUCHSTORE_NO_OPTIONS,
+        errCode = couchstore_all_docs(db, &ref, COUCHSTORE_NO_DELETES,
                                       populateAllKeys,
                                       static_cast<void *>(&ctx));
         closeDatabaseHandle(db);
                                       populateAllKeys,
                                       static_cast<void *>(&ctx));
         closeDatabaseHandle(db);