From 257917bda0dbf61572b6af7e2957601f381d0bc1 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Mon, 24 Feb 2020 15:32:01 +0100 Subject: [PATCH] rgw: append obj: prevent tail from being GC'ed append object tail gets GC'ed otherwise as the state has a manifest similar to atomic obj processor, but if the manifest exists and the position is correct, it is not an overwrite and shouldn't be GC'ed Fixes: https://tracker.ceph.com/issues/42670 Signed-off-by: Abhishek Lekshmanan (cherry picked from commit 2dad52a18f889cca4309e78a88c6c5c2c04d4947) --- src/rgw/rgw_putobj_processor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_putobj_processor.cc b/src/rgw/rgw_putobj_processor.cc index dedb3002bb2f..4ac9ccb017c6 100644 --- a/src/rgw/rgw_putobj_processor.cc +++ b/src/rgw/rgw_putobj_processor.cc @@ -566,6 +566,7 @@ int AppendObjectProcessor::prepare(optional_yield y) } cur_manifest = &(*astate->manifest); manifest.set_prefix(cur_manifest->get_prefix()); + astate->keep_tail = true; } manifest.set_multipart_part_rule(store->ctx()->_conf->rgw_obj_stripe_size, cur_part_num); -- 2.47.3