]> git-server-git.apps.pok.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>
Fri, 23 Aug 2013 22:37:18 +0000 (15:37 -0700)
commit4cf6996803ef66f2b6083f73593259d45e2740a3
tree41e87e0782249b28d05066754726e332f8c7db68
parentaea6de532b0b843c3a8bb76d10bab8476f0d7c09
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>
(cherry picked from commit d26ba3ab0374e77847c742dd00cb3bc9301214c2)
src/rgw/rgw_cache.h
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h