Multiple masters is no good if we keep dropping the database

This commit is contained in:
John Sully committed 2019-04-02 21:47:21 -04:00
1 parent e300f753c5
commit a9b70e1ef7
1 file changed
+2 -1
+2 -1
View File
@@ -1280,7 +1280,8 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
off_t left;
UNUSED(el);
UNUSED(mask);
int fUpdate = server.fActiveReplica; // Should we update our database, or create from scratch?
// Should we update our database, or create from scratch?
int fUpdate = server.fActiveReplica || server.enable_multimaster;
redisMaster *mi = (redisMaster*)privdata;
serverAssert(GlobalLocksAcquired());