mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Context getGlobalTemporaryVolume use shared lock
This commit is contained in:
parent
03feab3d20
commit
414f3aebef
@ -971,7 +971,7 @@ Strings Context::getWarnings() const
|
||||
/// TODO: remove, use `getTempDataOnDisk`
|
||||
VolumePtr Context::getGlobalTemporaryVolume() const
|
||||
{
|
||||
std::lock_guard lock(shared->mutex);
|
||||
SharedLockGuard lock(shared->mutex);
|
||||
/// Calling this method we just bypass the `temp_data_on_disk` and write to the file on the volume directly.
|
||||
/// Volume is the same for `root_temp_data_on_disk` (always set) and `temp_data_on_disk` (if it's set).
|
||||
if (shared->root_temp_data_on_disk)
|
||||
|
Loading…
Reference in New Issue
Block a user