Fixes: http://tracker.ceph.com/issues/19370
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
op_ret = read_op.prepare();
if (op_ret < 0)
goto done_err;
+ version_id = read_op.state.obj.key.instance;
/* start gettorrent */
if (torrent.get_flag())
bool is_slo;
string lo_etag;
bool rgwx_stat; /* extended rgw stat operation */
+ string version_id;
// compression attrs
RGWCompressionInfo cs_info;
dump_content_length(s, total_len);
dump_last_modified(s, lastmod);
+ if (!version_id.empty()) {
+ dump_header(s, "x-amz-version-id", version_id);
+ }
+
if (! op_ret) {
if (! lo_etag.empty()) {