mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #58950 from ClickHouse/fix-data-race-in-slru-2
Fix data race in slru (2)
This commit is contained in:
commit
e9acae7774
@ -79,7 +79,10 @@ private:
|
||||
SLRUFileCachePriority * cache_priority;
|
||||
LRUFileCachePriority::LRUIterator lru_iterator;
|
||||
const EntryPtr entry;
|
||||
bool is_protected;
|
||||
/// Atomic,
|
||||
/// but needed only in order to do FileSegment::getInfo() without any lock,
|
||||
/// which is done for system tables and logging.
|
||||
std::atomic<bool> is_protected;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user