summaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authorYuan Zhou <yuan.zhou@intel.com>2014-02-17 12:04:46 +0800
committerYuan Zhou <yuan.zhou@intel.com>2014-07-17 11:44:03 +0800
commitdefdf1929c46b7b82045f4b993d4ff0c430db9af (patch)
tree835ff932f1bf54ce9d3cb8e311db864692e699b9 /LICENSE
parentd5a45fcd2d92c1328d35c54e09712c1152f1af19 (diff)
downloadpython-swiftclient-defdf1929c46b7b82045f4b993d4ff0c430db9af.tar.gz
Allow to specify storage policy when uploading objects
Client already supports -H/--header option when creating container or uploading objects. This patch extends this option to support Storage Policy. e.g., swift post con -H 'X-Storage-Policy:p1' This creates one container 'con' with storage policy 'p1'. swift upload con obj -H 'X-Storage-Policy:p2' This creates container 'con' with storage policy 'p2' and uploads object 'obj' into it. Also fixes segmented uploading to non-default storage policy container When uploading large objects with segmentation to container with non-default storage policy, there will be another 'xxx_segments' container created, but with the default storage policy. This results all the segments to be stored with the wrong policy. This patch is for the Storage Policy feature, and also compatible with old versions w/o Storage Policy support. Change-Id: I5c19e90604a0bcf2c85e1732b8a0b97ae6801994
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions