Better comment

This commit is contained in:
alesapin 2020-07-20 16:45:18 +03:00
parent b9a0d0802c
commit 9881c60fdb

View File

@ -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);