]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: only shutdown objecter after it's initialized
authorJosh Durgin <josh.durgin@dreamhost.com>
Tue, 7 Feb 2012 01:59:36 +0000 (17:59 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 2 Mar 2012 01:16:29 +0000 (17:16 -0800)
commitcd313885783a5a69a554139b5b41d21a666c815b
tree5d49916cac9ab5f80e898d5ac294a5d7231bcfa6
parent749281eda741b3190c8e102fb3d253621ae17780
librados: only shutdown objecter after it's initialized

The objecter is only initialized once the RadosClient state is
CONNECTED from the perspective of a RadosClient::shutdown()
caller. Error paths in RadosClient::connect() may call shutdown while
still in the CONNECTING state.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Reviewed-by: Samuel Just <samuel.just@dreamhost.com>
src/librados.cc