} else {
entry = &dir.m[op.name];
entry->name = op.name;
+ entry->epoch = 0;
entry->exists = false;
}
std::map<string, struct rgw_bucket_dir_entry>::iterator miter = dir.m.find(op.name);
struct rgw_bucket_dir_entry *entry = NULL;
+ CLS_LOG("rgw_bucket_modify(): dir.m.size()=%lld", dir.m.size());
+
if (miter != dir.m.end()) {
entry = &miter->second;
CLS_LOG("rgw_bucket_modify(): existing entry: epoch=%lld\n", entry->epoch);
} else {
append_rand_alpha(tag, tag, 32);
}
- int ret = cls_obj_prepare_op(bucket, CLS_RGW_OP_ADD, tag, oid);
+ int ret = cls_obj_prepare_op(bucket, CLS_RGW_OP_ADD, tag, obj.object);
if (ret < 0)
return ret;
r = io_ctx.operate(oid, &op);
} else {
append_rand_alpha(tag, tag, 32);
}
- int ret = cls_obj_prepare_op(bucket, CLS_RGW_OP_ADD, tag, dst_oid);
+ int ret = cls_obj_prepare_op(bucket, CLS_RGW_OP_ADD, tag, dst_obj.object);
if (ret < 0)
goto done;
for (miter = dir.m.begin(); miter != dir.m.end(); ++miter) {
RGWObjEnt e;
rgw_bucket_dir_entry& dirent = miter->second;
-
if (!dirent.exists)
continue;