Skip to content

Commit

Permalink
hash spd plug naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ayulas authored and udi-speedb committed Jul 26, 2022
1 parent 3c877e5 commit bb03151
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugin/speedb/memtable/hash_spd_rep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ MemTableRep::Iterator* HashLocklessRep::GetIterator(Arena* arena) {
}
}

static std::unordered_map<std::string, OptionTypeInfo> lockless_factory_info = {
static std::unordered_map<std::string, OptionTypeInfo> hash_spd_factory_info = {
#ifndef ROCKSDB_LITE
{"bucket_count",
{0, OptionType::kSizeT, OptionVerificationType::kNormal,
Expand All @@ -966,7 +966,7 @@ static std::unordered_map<std::string, OptionTypeInfo> 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(
Expand Down
2 changes: 1 addition & 1 deletion plugin/speedb/memtable/hash_spd_rep.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bb03151

Please sign in to comment.