From: Danny Al-Gaaf Date: Sun, 11 May 2014 22:49:29 +0000 (+0200) Subject: SyntheticClient.cc: remove double check for "getdir" X-Git-Tag: v0.81~27^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1cac4915cbe3b8965883f5955bd789bf820ce3ee;p=ceph.git SyntheticClient.cc: remove double check for "getdir" Fix for: [src/client/SyntheticClient.cc:1143]: (style) Expression is always false because 'else if' condition matches previous condition at line 1139. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/client/SyntheticClient.cc b/src/client/SyntheticClient.cc index cd0f03e53d5..a509f7e3b68 100644 --- a/src/client/SyntheticClient.cc +++ b/src/client/SyntheticClient.cc @@ -1140,10 +1140,6 @@ int SyntheticClient::play_trace(Trace& t, string& prefix, bool metadata_only) const char *a = t.get_string(buf, p); list contents; client->getdir(a, contents); - } else if (strcmp(op, "getdir") == 0) { - const char *a = t.get_string(buf, p); - list contents; - client->getdir(a, contents); } else if (strcmp(op, "opendir") == 0) { const char *a = t.get_string(buf, p); int64_t b = t.get_int();