mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Better comment
This commit is contained in:
parent
b9a0d0802c
commit
9881c60fdb
@ -291,8 +291,10 @@ private:
|
||||
|
||||
using SharedDictionarySourcePtr = std::shared_ptr<IDictionarySource>;
|
||||
|
||||
/// Update dictionary source pointer if required and return
|
||||
/// it. Thread safe.
|
||||
/// Update dictionary source pointer if required and return it. Thread safe.
|
||||
/// MultiVersion is not used here because it works with constant pointers.
|
||||
/// For some reason almost all methods in IDictionarySource interface are
|
||||
/// not constant.
|
||||
SharedDictionarySourcePtr getDictionarySourceOrUpdate() const
|
||||
{
|
||||
std::lock_guard lock(source_mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user