do_osd_ops will need to either copy the old version out of the
way or simply delete it depending on mod_desc. Thus, defer
handling filling that part in until we finish the copy op.
Signed-off-by: Samuel Just <sam.just@inktank.com>
PGBackend::PGTransaction* t)
{
ObjectState& obs = cop->obc->obs;
-
- if (obs.exists) {
- t->remove(obs.oi.soid);
- }
-
if (cop->temp_cursor.is_initial()) {
// write directly to final object
cop->results.temp_oid = obs.oi.soid;
ObjectState& obs = ctx->new_obs;
CopyFromCallback *cb = static_cast<CopyFromCallback*>(ctx->copy_cb);
+ if (obs.exists) {
+ ctx->op_t->remove(obs.oi.soid);
+ }
+
if (!ctx->obs->exists) {
ctx->delta_stats.num_objects++;
obs.exists = true;