Skip to content

Commit 9740ab6

Browse files
Backport #68386 to 24.8: Revert "[RFC] Fix settings/current_database in system.processes for async BACKUP/RESTORE"
1 parent e4446f6 commit 9740ab6

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/Backups/BackupsWorker.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,6 @@ OperationID BackupsWorker::startMakingBackup(const ASTPtr & query, const Context
490490

491491
/// process_list_element_holder is used to make an element in ProcessList live while BACKUP is working asynchronously.
492492
auto process_list_element = context_in_use->getProcessListElement();
493-
/// Update context to preserve query information in processlist (settings, current_database)
494-
process_list_element->updateContext(context_in_use);
495493

496494
thread_pool.scheduleOrThrowOnError(
497495
[this,
@@ -855,8 +853,6 @@ OperationID BackupsWorker::startRestoring(const ASTPtr & query, ContextMutablePt
855853

856854
/// process_list_element_holder is used to make an element in ProcessList live while RESTORE is working asynchronously.
857855
auto process_list_element = context_in_use->getProcessListElement();
858-
/// Update context to preserve query information in processlist (settings, current_database)
859-
process_list_element->updateContext(context_in_use);
860856

861857
thread_pool.scheduleOrThrowOnError(
862858
[this,

src/Interpreters/ProcessList.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,6 @@ class QueryStatus : public WithContext
244244
/// Same as checkTimeLimit but it never throws
245245
[[nodiscard]] bool checkTimeLimitSoft();
246246

247-
/// Use it in case of the query left in background to execute asynchronously
248-
void updateContext(ContextWeakPtr weak_context) { context = std::move(weak_context); }
249-
250247
/// Get the reference for the start of the query. Used to synchronize with other Stopwatches
251248
UInt64 getQueryCPUStartTime() { return watch.getStart(); }
252249
};

0 commit comments

Comments
 (0)