]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: change cache / watch-notify init sequence
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 19 Aug 2013 15:40:16 +0000 (08:40 -0700)
committerSage Weil <sage@inktank.com>
Wed, 21 Aug 2013 18:13:09 +0000 (11:13 -0700)
commitd26ba3ab0374e77847c742dd00cb3bc9301214c2
tree65e882d6f64e767855e5775cbb7b074836819c63
parentcf8dbd248b8792781394fe87db141ad5704dc3b3
rgw: change cache / watch-notify init sequence

Fixes: #6046
We were initializing the watch-notify (through the cache
init) before reading the zone info which was much too
early, as we didn't have the control pool name yet. Now
simplifying init/cleanup a bit, cache doesn't call watch/notify
init and cleanup directly, but rather states its need
through a virtual callback.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/rgw/rgw_cache.h
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h