Skip to content

Commit

Permalink
Fix Issue #58
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSully committed Jul 17, 2019
1 parent aae0fdc commit c8516f3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2934,6 +2934,18 @@ void initServer(void) {
g_pserver->db[j].defrag_later = listCreate();
}

/* Fixup Master Client Database */
listIter li;
listNode *ln;
listRewind(g_pserver->masters, &li);
while ((ln = listNext(&li)))
{
redisMaster *mi = (redisMaster*)listNodeValue(ln);
serverAssert(mi->master == nullptr);
if (mi->cached_master != nullptr)
selectDb(mi->cached_master, 0);
}

if (g_pserver->syslog_enabled) {
openlog(g_pserver->syslog_ident, LOG_PID | LOG_NDELAY | LOG_NOWAIT,
g_pserver->syslog_facility);
Expand Down

0 comments on commit c8516f3

Please sign in to comment.