mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Minor fix
This commit is contained in:
parent
fd957f332e
commit
dc18f68b72
@ -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)
|
||||
{
|
||||
|
@ -88,7 +88,7 @@ private:
|
||||
DiskPtr disk;
|
||||
String table_path;
|
||||
|
||||
std::shared_timed_mutex rwlock;
|
||||
mutable std::shared_timed_mutex rwlock;
|
||||
|
||||
Files files;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user