From: Yehuda Sadeh Date: Sat, 24 Jan 2015 01:29:10 +0000 (-0800) Subject: rgw: guard olh modification X-Git-Tag: v0.93~156^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9c8424fe37be3091b688918db428f57bdeb92612;p=ceph.git rgw: guard olh modification Add a check that validates that object still exists. This shouldn't really be an issue, as we later compare the tag. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 7c5df6295c9a..2e2252e1c9e3 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -5711,6 +5711,8 @@ int RGWRados::olh_init_modification_impl(RGWObjState& state, rgw_obj& olh_obj, s if (!state.exists) { op.create(true); + } else { + op.assert_exists(); } /*