]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix compile error for appending object
authorzhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Wed, 21 Nov 2018 06:58:27 +0000 (14:58 +0800)
committerzhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Tue, 12 Feb 2019 03:14:55 +0000 (11:14 +0800)
Signed-off-by: zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
doc/radosgw/s3/objectops.rst
src/rgw/rgw_putobj_processor.cc

index d80b0887d5405f47af8713411cf7cda6763fd0d4..3c8c8750a99a1723c02fc2587f08a966fee35fb5 100644 (file)
@@ -404,9 +404,9 @@ Syntax
 
 
 Append Object
-----------
+-------------
 Append data to an object. You must have write permissions on the bucket to perform this operation.
-It is used to upload files in appending mode.The type of the objects created by the Append Object
+It is used to upload files in appending mode. The type of the objects created by the Append Object
 operation is Appendable Object, and the type of the objects uploaded with the Put Object operation is Normal Object.
 **Append Object can't be used if bucket versioning is enabled.**
 
index 4e10261a22d08f99e9523d65a0faba3a600d197b..365ad49d1aeb3bda7815a5ce2c0ac3ae7b0c7c13 100644 (file)
@@ -605,13 +605,13 @@ int AppendObjectProcessor::complete(size_t accounted_size, const string &etag, c
   if (r < 0) {
     return r;
   }
-  obj_ctx.obj.set_atomic(head_obj);
+  obj_ctx.set_atomic(head_obj);
   RGWRados::Object op_target(store, bucket_info, obj_ctx, head_obj);
   //For Append obj, disable versioning
   op_target.set_versioning_disabled(true);
   RGWRados::Object::Write obj_op(&op_target);
   if (cur_manifest) {
-    cur_manifest->append(manifest, store);
+    cur_manifest->append(manifest, store->svc.zone);
     obj_op.meta.manifest = cur_manifest;
   } else {
     obj_op.meta.manifest = &manifest;