]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't pass object context into async coroutines
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 26 Apr 2016 22:29:41 +0000 (15:29 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 9 May 2016 23:00:14 +0000 (16:00 -0700)
commit4a5f33dd975eb44f908b8a90a7ad2e4beb17b354
treedd070dbe1ae111b8076c043385958506fffbb59a
parent1d12f82a24f78769bcebb32cb379445e04f35e46
rgw: don't pass object context into async coroutines

Fixes: http://tracker.ceph.com/issues/15625
The async read data/attrs coroutines may outlive the callers. Instead
of introducing a complicated refcounting scheme, just don't pass it in.
Anyway, it was not thread safe, and the benefit of using it is not
clear.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit b225d1758057efc30721aad25447d54fa36e4cb2)
src/rgw/rgw_cr_rados.h
src/rgw/rgw_data_sync.cc
src/rgw/rgw_sync.cc