Minor fix

This commit is contained in:
Nikolay Degterinsky 2021-07-12 10:21:17 +00:00
parent fd957f332e
commit dc18f68b72
2 changed files with 2 additions and 2 deletions

View File

@ -721,7 +721,7 @@ CheckResults StorageLog::checkData(const ASTPtr & /* query */, ContextPtr contex
IStorage::ColumnSizeByName StorageLog::getColumnSizes() const
{
std::shared_lock lock(rwlock);
std::shared_lock lock(rwlock, DBMS_DEFAULT_LOCK_ACQUIRE_TIMEOUT_SEC);
ColumnSizeByName column_sizes;
for (const auto & it : files)
{

View File

@ -88,7 +88,7 @@ private:
DiskPtr disk;
String table_path;
std::shared_timed_mutex rwlock;
mutable std::shared_timed_mutex rwlock;
Files files;