修复flushDB中未重置预备版本号的bug。

This commit is contained in:
zhengchao
2018-05-30 11:57:11 +08:00
parent e709300b24
commit a751eab6bb
2 changed files with 3 additions and 1 deletions

View File

@@ -1681,6 +1681,8 @@ int redis_flush_DB(redisContext* ctx, int db_index, void* logger)
redisAppendCommand(ctx,"FLUSHDB");
append_cmd_cnt++;
redisAppendCommand(ctx,"SET MAAT_VERSION %lld",maat_redis_version);
append_cmd_cnt++;
redisAppendCommand(ctx,"SET MAAT_PRE_VER %lld",maat_redis_version);
append_cmd_cnt++;
redisAppendCommand(ctx,"SET SEQUENCE_REGION 1",maat_redis_version);
append_cmd_cnt++;