]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: Eliminate obscure "Invalid params" error
authorDavid Zafman <dzafman@redhat.com>
Tue, 10 Feb 2015 01:14:50 +0000 (17:14 -0800)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Feb 2016 20:50:20 +0000 (12:50 -0800)
Will fail later with "No such file or directory" for an empty data-path
because we've already checked for vm.count("data-path")

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit cfca6835bd53d535bde2793551211845b0facebd)

src/tools/ceph_objectstore_tool.cc

index e7304ba1ee2cdc552af0fa832f44d57ea78e0d87..425044d18519714c1269cfd0195b8f041cac1963 100644 (file)
@@ -2459,11 +2459,6 @@ int main(int argc, char **argv)
     return 1;
   }
 
-  if (dpath.length() == 0) {
-    cerr << "Invalid params" << std::endl;
-    return 1;
-  }
-
   osflagbits_t flags = 0;
   if (vm.count("skip-journal-replay"))
     flags |= SKIP_JOURNAL_REPLAY;