]> git.apps.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>
Wed, 13 May 2015 20:09:11 +0000 (13:09 -0700)
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>
src/tools/ceph_objectstore_tool.cc

index 4bf9de00ff39e1cb6684b601d3c956b492625f2a..76a710b59d567bc5ea5c988f8c374b071623f9f4 100644 (file)
@@ -2460,11 +2460,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;