Skip to content

Commit

Permalink
fix: fix the bug for DiscardMulti which returns wrong reply.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleiphir2769 authored and HDT3213 committed Sep 30, 2021
1 parent e91294b commit 8a299ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func DiscardMulti(conn redis.Connection) redis.Reply {
}
conn.ClearQueuedCmds()
conn.SetMultiState(false)
return reply.MakeQueuedReply()
return reply.MakeOkReply()
}

// GetUndoLogs return rollback commands
Expand Down

0 comments on commit 8a299ee

Please sign in to comment.