Multiple masters is no good if we keep dropping the database

Former-commit-id: a9b70e1ef72201bcae0f08779d442a451b248798
This commit is contained in:
John Sully 2019-04-02 21:47:21 -04:00
parent 55696f4436
commit c53b8125df

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());