diff options
-rw-r--r-- | logger.c | 2 | ||||
-rw-r--r-- | t/watcher.t | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -447,7 +447,7 @@ static int logger_thread_poll_watchers(int force_poll, int watcher) { nfd = 0; for (x = 0; x < WATCHER_LIMIT; x++) { logger_watcher *w = watchers[x]; - if (w == NULL) + if (w == NULL || (watcher != WATCHER_ALL && x != watcher)) continue; data_size = 0; diff --git a/t/watcher.t b/t/watcher.t index c34e896..6661326 100644 --- a/t/watcher.t +++ b/t/watcher.t @@ -85,7 +85,6 @@ if ($res eq "STORED\r\n") { # wait for all of the writes to go through. print $client "version\r\n"; $res = <$client>; - sleep 4; my $mwatcher = $server->new_sock; print $mwatcher "watch mutations evictions\n"; |