From: su_nan@inspur.com Date: Thu, 14 Nov 2019 01:49:30 +0000 (+0800) Subject: client: remove unused variable X-Git-Tag: v15.1.0~891^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31509%2Fhead;p=ceph.git client: remove unused variable the flock and cond are useless variables in Client::_read_sync,remove useless variables Fixes: https://tracker.ceph.com/issues/42720 Signed-off-by: su_nan@inspur.com --- diff --git a/src/client/Client.cc b/src/client/Client.cc index f3f6cacc9eba..e042539c3b52 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -9283,8 +9283,6 @@ int Client::_read_sync(Fh *f, uint64_t off, uint64_t len, bufferlist *bl, ldout(cct, 10) << __func__ << " " << *in << " " << off << "~" << len << dendl; - ceph::mutex flock = ceph::make_mutex("Client::_read_sync flock"); - ceph::condition_variable cond; while (left > 0) { C_SaferCond onfinish("Client::_read_sync flock"); bufferlist tbl;