From a0aa859e6291bf6689302e6bb01c989055ab82ce Mon Sep 17 00:00:00 2001 From: Zhang Shaowen Date: Fri, 3 Mar 2017 11:16:22 +0800 Subject: [PATCH] rgw: get torrent request's parameter is not the same as amazon s3. Fixes: http://tracker.ceph.com/issues/19136 Signed-off-by: Zhang Shaowen --- PendingReleaseNotes | 4 ++++ src/rgw/rgw_torrent.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/PendingReleaseNotes b/PendingReleaseNotes index fbe482e228c..0b367b9485e 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -69,3 +69,7 @@ * The rados copy-get-classic operation has been removed since it has not been used by the OSD since before hammer. It is unlikely any librados user is using this operation explicitly since there is also the more modern copy-get. + +* The RGW api for getting object torrent has changed its params from 'get_torrent' + to 'torrent' so that it can be compatible with Amazon S3. Now the request for + object torrent is like 'GET /ObjectName?torrent'. diff --git a/src/rgw/rgw_torrent.h b/src/rgw/rgw_torrent.h index 268d2671c24..6d2b28cd91a 100644 --- a/src/rgw/rgw_torrent.h +++ b/src/rgw/rgw_torrent.h @@ -29,7 +29,7 @@ struct req_state; #define PIECE_LENGTH "piece length" #define PIECES "pieces" #define INFO_PIECES "info" -#define GET_TORRENT "get_torrent" +#define GET_TORRENT "torrent" class TorrentBencode { -- 2.39.5