Fixed a goof where we were mirroring a write to the wrong key in the new cache cluster.

This commit is contained in:
Jon Chambers 2020-07-02 11:07:18 -04:00 committed by Jon Chambers
parent 664df55525
commit ff2783d434
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class AccountDatabaseCrawlerCache {
if (claimed) {
// TODO Restore the NX flag when making the cluster the primary data store
cacheCluster.useWriteCluster(connection -> connection.sync().set(ACCELERATE_KEY, workerId, SetArgs.Builder.px(ttlMs)));
cacheCluster.useWriteCluster(connection -> connection.sync().set(ACTIVE_WORKER_KEY, workerId, SetArgs.Builder.px(ttlMs)));
}
return claimed;