Skip to content

Commit

Permalink
bugfix pika_to_redis sender thread early exit in some scenarios (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
Axlgrep committed May 11, 2018
1 parent a6b4793 commit a44f878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pika_to_redis/sender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void *Sender::ThreadMain() {

if (cli_ == NULL) {
ConnectRedis();
if (should_exit_) {
if (QueueSize() == 0 && should_exit_) {
return NULL;
}
} else {
Expand Down

0 comments on commit a44f878

Please sign in to comment.