From a88ee073240b149d0c57bbc4552aa277ab8564bf Mon Sep 17 00:00:00 2001 From: "su_nan@inspur.com" Date: Thu, 14 Nov 2019 09:49:30 +0800 Subject: [PATCH] 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 --- src/client/Client.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index f3f6cacc9eb..e042539c3b5 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; -- 2.39.5