File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/moilioncircle/redis/replicator/rdb Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -300,13 +300,13 @@ public long parse() throws IOException {
300
300
// we should set repl_id, repl_offset, repl_stream_db after full sync done to avoid losing data.
301
301
Configuration configuration = replicator .getConfiguration ();
302
302
303
- String replId = configuration .getCookie (REPL_ID );
303
+ String replId = configuration .setCookie (REPL_ID , null );
304
304
if (replId != null ) configuration .setReplId (replId );
305
305
306
- String replOffset = configuration .getCookie (REPL_OFFSET );
306
+ String replOffset = configuration .setCookie (REPL_OFFSET , null );
307
307
if (replOffset != null ) configuration .setReplOffset (parseLong (replOffset ));
308
308
309
- String replStreamDB = configuration .getCookie (REPL_STREAM_DB );
309
+ String replStreamDB = configuration .setCookie (REPL_STREAM_DB , null );
310
310
if (replStreamDB != null ) configuration .setReplStreamDB (parseInt (replStreamDB ));
311
311
return offset ;
312
312
}
You can’t perform that action at this time.
0 commit comments