From 47d8b076811ea6b6cb5c5721fd217066e310d8b2 Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Tue, 11 Jan 2022 18:53:45 +0300 Subject: [PATCH] Dictionary rename fix --- src/Dictionaries/IDictionary.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Dictionaries/IDictionary.h b/src/Dictionaries/IDictionary.h index b1923306003..991b45e8e8f 100644 --- a/src/Dictionaries/IDictionary.h +++ b/src/Dictionaries/IDictionary.h @@ -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; };