Skip to content

Commit

Permalink
rgw: get torrent request's parameter is not the same as amazon s3.
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/19136

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
  • Loading branch information
Zhang Shaowen committed Mar 9, 2017
1 parent 2bcd9d7 commit a0aa859
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions PendingReleaseNotes
Expand Up @@ -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'.
2 changes: 1 addition & 1 deletion src/rgw/rgw_torrent.h
Expand Up @@ -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
{
Expand Down

0 comments on commit a0aa859

Please sign in to comment.