]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix watch initialization and reinit on error
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 12 Feb 2015 23:29:24 +0000 (15:29 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 5 Mar 2015 20:29:24 +0000 (12:29 -0800)
commit7bab9f7c68cf7ecb816d13683ef6243dc501dec5
treecd7aa450eba93342dcc4c4482fb4922359f13b54
parent387e4f85873df8761d8021e53604eef3bef59793
rgw: fix watch initialization and reinit on error

We can't just call rados->finalize_watch() and rados->init_watch() from
the watcher, as these calls modify the watcher itself. Also, we can't just
enable the cache after successful watch, because there's more than one
watcher. Only enable the cache if all watchers are set.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h