Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2024-01-22 21:10:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2024-01-22 21:10:33 +0300
commita9a2f9257eae40935e03ca4185d5263bcb7ba45f (patch)
treef12875873819442e10ab04bd15fd975bf4bb7b64 /app/workers
parent917d93d86da4dffd96abcfcf3aa83b0d6fa45286 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/click_house/event_paths_consistency_cron_worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/click_house/event_paths_consistency_cron_worker.rb b/app/workers/click_house/event_paths_consistency_cron_worker.rb
index 71a1fb0995f..e115aa6b7e9 100644
--- a/app/workers/click_house/event_paths_consistency_cron_worker.rb
+++ b/app/workers/click_house/event_paths_consistency_cron_worker.rb
@@ -83,13 +83,13 @@ module ClickHouse
paths = id_paths.map(&:second).map { |value| "'#{value}'" }.join(',')
query = ClickHouse::Client::Query.new(
- raw_query: "DELETE FROM events WHERE path IN (#{paths})"
+ raw_query: "ALTER TABLE events DELETE WHERE path IN (#{paths})"
)
connection.execute(query)
query = ClickHouse::Client::Query.new(
- raw_query: 'DELETE FROM event_namespace_paths WHERE namespace_id IN ({namespace_ids:Array(UInt64)})',
+ raw_query: 'ALTER TABLE event_namespace_paths DELETE WHERE namespace_id IN ({namespace_ids:Array(UInt64)})',
placeholders: { namespace_ids: id_paths.map(&:first).to_json }
)