]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados-tool: use init_with_config interface
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 12 Apr 2011 21:04:06 +0000 (14:04 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 12 Apr 2011 21:04:06 +0000 (14:04 -0700)
Programs that use both librados and common_init should use
init_with_config.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/rados.cc

index d288c8ed10c814361a20d002dd1eae2e5fc5e9ba..1498be6bdcd5cd473c5c30d27748bb938d6db8d6 100644 (file)
@@ -310,7 +310,7 @@ int main(int argc, const char **argv)
 
   // open rados
   Rados rados;
-  if (rados.init(NULL) < 0) {
+  if (rados.init_with_config(&g_conf) < 0) {
      cerr << "couldn't initialize rados!" << std::endl;
      exit(1);
   }