Commit 561dc2bf authored by antirez's avatar antirez
Browse files

TCC: select correct db in reply_client to unlock keys properly.

parent 840932fb
......@@ -7290,6 +7290,7 @@ void executeThreadedCommand(client *c, coreThreadedCommandCallback callback, voi
* blocked handle: this way if the real client is freed because of
* disconnection, we still unlock the keys in the right moment, that
* is once the thread returns. */
selectDb(bc->reply_client,c->db->id);
bc->reply_client->locked = c->locked;
c->locked = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment