mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-04 16:32:41 +08:00
re-generate aof file during load database from replication master; Allow master-slave role switching
This commit is contained in:
@@ -371,7 +371,7 @@ func execCopy(mdb *MultiDB, conn redis.Connection, args [][]byte) redis.Reply {
|
||||
expire := raw.(time.Time)
|
||||
destDB.Expire(destKey, expire)
|
||||
}
|
||||
mdb.aofHandler.AddAof(conn.GetDBIndex(), utils.ToCmdLine3("copy", args...))
|
||||
mdb.AddAof(conn.GetDBIndex(), utils.ToCmdLine3("copy", args...))
|
||||
return protocol.MakeIntReply(1)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user