]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: remove unused variable
authorsu_nan@inspur.com <su_nan@inspur.com>
Thu, 14 Nov 2019 01:49:30 +0000 (09:49 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 15 Nov 2019 05:49:14 +0000 (21:49 -0800)
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 <su_nan@inspur.com>
src/client/Client.cc

index f3f6cacc9eba2fed1de8e6af2b182ec442b41702..e042539c3b52edee6cfdd0ee3c2b4c250351f97f 100644 (file)
@@ -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;