From: Danny Al-Gaaf Date: Wed, 1 Oct 2014 13:49:17 +0000 (+0200) Subject: SyntheticClient.cc: remove dead code X-Git-Tag: v0.88~130^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=88022e822152c966196af737c932f680a9e6e4f1;p=ceph.git SyntheticClient.cc: remove dead code Fix for coverity issue: const: At condition unsafe > 0, the value of unsafe must be equal to 0. dead_error_condition: The condition unsafe > 0 cannot be true. CID 716892 (#1 of 1): Logically dead code (DEADCODE) dead_error_begin: Execution cannot reach this statement Signed-off-by: Danny Al-Gaaf --- diff --git a/src/client/SyntheticClient.cc b/src/client/SyntheticClient.cc index 7b4f4a41ed70..bf8491aeca3a 100644 --- a/src/client/SyntheticClient.cc +++ b/src/client/SyntheticClient.cc @@ -2348,7 +2348,6 @@ int SyntheticClient::object_rw(int nobj, int osize, int wrpc, Cond cond; int unack = 0; - int unsafe = 0; while (1) { if (time_to_stop()) break; @@ -2390,9 +2389,6 @@ int SyntheticClient::object_rw(int nobj, int osize, int wrpc, } client->objecter->mutate(oid, oloc, m, snapc, ceph_clock_now(client->cct), 0, NULL, new C_Ref(lock, cond, &unack)); - /*client->objecter->write(oid, layout, 0, osize, snapc, bl, 0, - new C_Ref(lock, cond, &unack), - new C_Ref(lock, cond, &unsafe));*/ } else { dout(10) << "read from " << oid << dendl; bufferlist inbl; @@ -2418,13 +2414,6 @@ int SyntheticClient::object_rw(int nobj, int osize, int wrpc, } } - - lock.Lock(); - while (unsafe > 0) { - dout(10) << "waiting for " << unsafe << " unsafe" << dendl; - cond.Wait(lock); - } - lock.Unlock(); return 0; }