]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
SyntheticClient.cc: remove double check for "getdir"
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 11 May 2014 22:49:29 +0000 (00:49 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 11 May 2014 22:49:29 +0000 (00:49 +0200)
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 <danny.al-gaaf@bisect.de>
src/client/SyntheticClient.cc

index cd0f03e53d5412bba83e34fcff8dba86e3a40791..a509f7e3b684c36f63787997ba3a93b6c1cc8639 100644 (file)
@@ -1140,10 +1140,6 @@ int SyntheticClient::play_trace(Trace& t, string& prefix, bool metadata_only)
       const char *a = t.get_string(buf, p);
       list<string> contents;
       client->getdir(a, contents);
-    } else if (strcmp(op, "getdir") == 0) {
-      const char *a = t.get_string(buf, p);
-      list<string> 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();