Skip to content

Commit e19b2d2

Browse files
author
Baoyi Chen
committed
offset
1 parent 1728704 commit e19b2d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/moilioncircle/redis/replicator/rdb/RdbParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,13 @@ public long parse() throws IOException {
300300
// we should set repl_id, repl_offset, repl_stream_db after full sync done to avoid losing data.
301301
Configuration configuration = replicator.getConfiguration();
302302

303-
String replId = configuration.getCookie(REPL_ID);
303+
String replId = configuration.setCookie(REPL_ID, null);
304304
if (replId != null) configuration.setReplId(replId);
305305

306-
String replOffset = configuration.getCookie(REPL_OFFSET);
306+
String replOffset = configuration.setCookie(REPL_OFFSET, null);
307307
if (replOffset != null) configuration.setReplOffset(parseLong(replOffset));
308308

309-
String replStreamDB = configuration.getCookie(REPL_STREAM_DB);
309+
String replStreamDB = configuration.setCookie(REPL_STREAM_DB, null);
310310
if (replStreamDB != null) configuration.setReplStreamDB(parseInt(replStreamDB));
311311
return offset;
312312
}

0 commit comments

Comments
 (0)