]> git.saurik.com Git - redis.git/blobdiff - src/debug.c
Fixed replication when multiple slaves are attaching at the same time. The output...
[redis.git] / src / debug.c
index bc496fb3f66a71a1e8d45c878e89cfc1c80f0501..d218f0f93179fc74e4ff4fc53c12cbf04bee4a2d 100644 (file)
@@ -216,12 +216,12 @@ void debugCommand(redisClient *c) {
         if (c->argc >= 3) c->argv[2] = tryObjectEncoding(c->argv[2]);
         redisAssertWithInfo(c,c->argv[0],1 == 2);
     } else if (!strcasecmp(c->argv[1]->ptr,"reload")) {
-        if (rdbSave(server.dbfilename) != REDIS_OK) {
+        if (rdbSave(server.rdb_filename) != REDIS_OK) {
             addReply(c,shared.err);
             return;
         }
         emptyDb();
-        if (rdbLoad(server.dbfilename) != REDIS_OK) {
+        if (rdbLoad(server.rdb_filename) != REDIS_OK) {
             addReplyError(c,"Error trying to load the RDB dump");
             return;
         }