From: Pan Liu Date: Mon, 17 Jul 2017 01:42:04 +0000 (+0800) Subject: test/msgr: fixed the hang issue for perf_msg_client X-Git-Tag: v12.1.1~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F16358%2Fhead;p=ceph.git test/msgr: fixed the hang issue for perf_msg_client Signed-off-by: Pan Liu --- diff --git a/src/test/msgr/perf_msgr_client.cc b/src/test/msgr/perf_msgr_client.cc index d8d25720033..5774c593974 100644 --- a/src/test/msgr/perf_msgr_client.cc +++ b/src/test/msgr/perf_msgr_client.cc @@ -84,7 +84,7 @@ class MessengerClient { ClientThread(Messenger *m, int c, ConnectionRef con, int len, int ops, int think_time_us): msgr(m), concurrent(c), conn(con), oid("object-name"), oloc(1, 1), msg_len(len), ops(ops), - dispatcher(think_time_us, this), lock("MessengerBenchmark::ClientThread::lock") { + dispatcher(think_time_us, this), lock("MessengerBenchmark::ClientThread::lock"), inflight(0) { m->add_dispatcher_head(&dispatcher); bufferptr ptr(msg_len); memset(ptr.c_str(), 0, msg_len);