diff --git a/plugin/speedb/memtable/hash_spd_rep.cc b/plugin/speedb/memtable/hash_spd_rep.cc index 278b8a94c..f7b1edde8 100644 --- a/plugin/speedb/memtable/hash_spd_rep.cc +++ b/plugin/speedb/memtable/hash_spd_rep.cc @@ -955,7 +955,7 @@ MemTableRep::Iterator* HashLocklessRep::GetIterator(Arena* arena) { } } -static std::unordered_map lockless_factory_info = { +static std::unordered_map hash_spd_factory_info = { #ifndef ROCKSDB_LITE {"bucket_count", {0, OptionType::kSizeT, OptionVerificationType::kNormal, @@ -966,7 +966,7 @@ static std::unordered_map lockless_factory_info = { HashLocklessRepFactory::HashLocklessRepFactory(size_t bucket_count) : bucket_count_(bucket_count) { - RegisterOptions("", &bucket_count_, &lockless_factory_info); + RegisterOptions("", &bucket_count_, &hash_spd_factory_info); } MemTableRep* HashLocklessRepFactory::CreateMemTableRep( diff --git a/plugin/speedb/memtable/hash_spd_rep.h b/plugin/speedb/memtable/hash_spd_rep.h index a60a8170f..1b2e1d886 100644 --- a/plugin/speedb/memtable/hash_spd_rep.h +++ b/plugin/speedb/memtable/hash_spd_rep.h @@ -27,7 +27,7 @@ class HashLocklessRepFactory : public MemTableRepFactory { bool IsInsertConcurrentlySupported() const override { return true; } bool CanHandleDuplicatedKey() const override { return true; } - static const char* kClassName() { return "speedb.HashLocklessRepFactory"; } + static const char* kClassName() { return "speedb.HashSpdRepFactory"; } const char* Name() const override { return kClassName(); } private: