Dictionary rename fix

This commit is contained in:
Maksim Kita 2022-01-11 18:53:45 +03:00
parent 8aa930b52f
commit 47d8b07681

View File

@ -56,7 +56,7 @@ public:
{
}
const std::string & getFullName() const{ return full_name; }
const std::string & getFullName() const { return full_name; }
StorageID getDictionaryID() const
{
@ -69,6 +69,7 @@ public:
std::lock_guard lock{name_mutex};
assert(new_name.uuid == dictionary_id.uuid && dictionary_id.uuid != UUIDHelpers::Nil);
dictionary_id = new_name;
full_name = dictionary_id.getInternalDictionaryName();
}
const std::string & getLoadableName() const override final { return getFullName(); }
@ -234,7 +235,7 @@ private:
mutable StorageID dictionary_id;
protected:
const String full_name;
mutable String full_name;
String dictionary_comment;
};