Merge pull request #707 from NanXiao/patch-1

Update src/redis-benchmark.c
This commit is contained in:
Salvatore Sanfilippo 2012-10-10 02:18:14 -07:00
commit d10a01bb6d

View File

@ -201,7 +201,10 @@ static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
if (config.requests_finished < config.requests)
config.latency[config.requests_finished++] = c->latency;
c->pending--;
if (c->pending == 0) clientDone(c);
if (c->pending == 0) {
clientDone(c);
break;
}
} else {
break;
}