Convert to "del" to write aof instead of "getdel"

This commit is contained in:
Eriri
2022-06-04 23:13:11 +08:00
committed by finley
parent f3274fd8c8
commit 4682f254f2

View File

@@ -409,7 +409,9 @@ func execGetDel(db *DB, args [][]byte) redis.Reply {
return new(protocol.NullBulkReply)
}
db.Remove(key)
db.addAof(utils.ToCmdLine3("getdel", args...))
// We convert to del command to write aof
db.addAof(utils.ToCmdLine3("del", args...))
return protocol.MakeBulkReply(old)
}