mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 08:46:56 +08:00
Convert to "del" to write aof instead of "getdel"
This commit is contained in:
@@ -409,7 +409,9 @@ func execGetDel(db *DB, args [][]byte) redis.Reply {
|
|||||||
return new(protocol.NullBulkReply)
|
return new(protocol.NullBulkReply)
|
||||||
}
|
}
|
||||||
db.Remove(key)
|
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)
|
return protocol.MakeBulkReply(old)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user