Fix making a query scope for async backups.

This commit is contained in:
Vitaly Baranov 2022-07-15 11:55:13 +02:00
parent d4a24a5f8e
commit 429aab2f12

View File

@ -107,7 +107,7 @@ UUID BackupsWorker::startMakingBackup(const ASTPtr & query, const ContextPtr & c
{
if (async)
{
query_scope.emplace(context_in_use);
query_scope.emplace(mutable_context);
setThreadName("BackupWorker");
}