From 4682f254f29e85856ef80ea72b2e1d73cf908776 Mon Sep 17 00:00:00 2001 From: Eriri <275955589@qq.com> Date: Sat, 4 Jun 2022 23:13:11 +0800 Subject: [PATCH] Convert to "del" to write aof instead of "getdel" --- database/string.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/database/string.go b/database/string.go index 69f340e..897e024 100644 --- a/database/string.go +++ b/database/string.go @@ -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) }