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 authored and Jon Chambers committed 2020-07-02 11:40:27 -04:00
1 parent 664df55525
commit ff2783d434
1 file changed
+1 -1
@@ -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;