]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: dump internal object tag when system user lists bucket
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 10 Mar 2015 22:47:38 +0000 (15:47 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:12:48 +0000 (16:12 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rest_s3.cc

index ef5b66779503ca469f1d281b94973e5ac93ae380..78911a20889d07d520d10b63b06bfceea8f04c52 100644 (file)
@@ -330,8 +330,11 @@ void RGWListBucket_ObjStore_S3::send_versioned_response()
       if (version_id.empty()) {
         version_id = "null";
       }
-      if (s->system_request && iter->versioned_epoch > 0) {
-        s->formatter->dump_int("VersionedEpoch", iter->versioned_epoch);
+      if (s->system_request) {
+        if (iter->versioned_epoch > 0) {
+          s->formatter->dump_int("VersionedEpoch", iter->versioned_epoch);
+        }
+        s->formatter->dump_string("RgwxTag", iter->tag);
       }
       s->formatter->dump_string("VersionId", version_id);
       s->formatter->dump_bool("IsLatest", iter->is_current());
@@ -409,6 +412,9 @@ void RGWListBucket_ObjStore_S3::send_response()
       s->formatter->dump_int("Size", iter->size);
       s->formatter->dump_string("StorageClass", "STANDARD");
       dump_owner(s, iter->owner, iter->owner_display_name);
+      if (s->system_request) {
+        s->formatter->dump_string("RgwxTag", iter->tag);
+      }
       s->formatter->close_section();
     }
     if (!common_prefixes.empty()) {