[Openstack] openstack swift object put request
pragya jain
prag_2648 at yahoo.co.in
Sat Feb 1 12:02:21 UTC 2014
hi all,
somebody help me to understand the following lines of code of ObjectController.PUT() in swift.proxy.controllers.obj.py
def PUT(self, req):
"""HTTP PUT request handler."""
-----------
# do a HEAD request for container sync and checking object versions
if 'x-timestamp' in req.headers or \
(object_versions and not
req.environ.get('swift_versioned_copy')):
hreq = Request.blank(req.path_info, headers={'X-Newest': 'True'},
environ={'REQUEST_METHOD': 'HEAD'})
hresp = self.GETorHEAD_base(
hreq, _('Object'), self.app.object_ring, partition,
hreq.swift_entity_path)
-----------
in the following lines of code, self.GETorHEAD_base() create an HTTPConnection to object server for a HEAD request which is defined in ObjectController.HEAD() of swift.obj.server.py
But we are in process of putting object, object is not written till yet on the node, then what will it return to hresp?
thanks
Pragya Jain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140201/ab93fe0f/attachment.html>
More information about the Openstack
mailing list