use DiskQueueVersion::V2 for KeyValueStoreMemory

This commit is contained in:
Yi Wu 2022-02-03 16:30:50 -08:00 committed by Jingyu Zhou
parent 8c92c330c3
commit eae3dab04d
1 changed files with 1 additions and 2 deletions

View File

@ -887,8 +887,7 @@ IKeyValueStore* keyValueStoreMemory(std::string const& basename,
.detail("MemoryLimit", memoryLimit)
.detail("StoreType", storeType);
// SOMEDAY: Maybe update to use DiskQueueVersion::V2 with xxhash3 checksum.
IDiskQueue* log = openDiskQueue(basename, ext, logID, DiskQueueVersion::V1);
IDiskQueue* log = openDiskQueue(basename, ext, logID, DiskQueueVersion::V2);
if (storeType == KeyValueStoreType::MEMORY_RADIXTREE) {
return new KeyValueStoreMemory<radix_tree>(log, logID, memoryLimit, storeType, false, false, false);
} else {