From 8ae95ebf604734a4c3d2ddb96d7f3c29134fcc49 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 6 Jan 2020 16:45:36 +0000 Subject: [PATCH] fix rclient check in migration metrics --- .../document-updater/app/coffee/RedisMigrationManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/document-updater/app/coffee/RedisMigrationManager.coffee b/services/document-updater/app/coffee/RedisMigrationManager.coffee index 553e707753..4978bf7e7b 100644 --- a/services/document-updater/app/coffee/RedisMigrationManager.coffee +++ b/services/document-updater/app/coffee/RedisMigrationManager.coffee @@ -106,7 +106,7 @@ class Multi @migrationClient.findQueue @queueKey, (err, rclient) => return releaseLock(err) if err? # add metric for updates - dest = (if rclient == @rclient_new then "new" else "old") + dest = (if rclient == @migrationClient.rclient_new then "new" else "old") metrics.count "migration", @updates_count, 1, {status: "#{@migrationClient.migration_phase}-#{dest}"} multi = rclient.multi() for entry in @command_list