From: Greg Farnum Date: Fri, 26 Mar 2010 22:56:37 +0000 (-0700) Subject: rgw: if you can't init_storage_provider(), quit instead X-Git-Tag: v0.20~161 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9dd4f9923dd355ade13877b8a18aec4ede2e9454;p=ceph.git rgw: if you can't init_storage_provider(), quit instead of segfaulting later. --- diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index b3923935c65..deae6050823 100644 --- a/src/rgw/rgw_main.cc +++ b/src/rgw/rgw_main.cc @@ -227,6 +227,7 @@ int main(int argc, char *argv[]) if (!RGWAccess::init_storage_provider("rados", argc, argv)) { cerr << "couldn't init storage provider" << std::endl; + return 5; //EIO } sighandler = signal(SIGSEGV, godown);