Merge pull request #47861 from azat/restore-correct-pool

Use restore_threads (not backup_threads) for RESTORE ASYNC
This commit is contained in:
Vitaly Baranov 2023-03-22 14:14:23 +01:00 committed by GitHub
commit e70577a46e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -441,7 +441,7 @@ OperationID BackupsWorker::startRestoring(const ASTPtr & query, ContextMutablePt
if (restore_settings.async)
{
backups_thread_pool.scheduleOrThrowOnError(
restores_thread_pool.scheduleOrThrowOnError(
[this, restore_query, restore_id, backup_name_for_logging, backup_info, restore_settings, restore_coordination, context_in_use]
{
doRestore(