[Openstack] openstack swift object put request
Jay Pipes
jaypipes at gmail.com
Sun Feb 2 19:44:32 UTC 2014
On Sun, 2014-02-02 at 11:21 +0800, pragya jain wrote:
> please somebody reply.
This question belongs on the openstack-dev mailing list, and don't
forget to use a [swift] topic in your ML post subject line.
Best,
-jay
> pragya jain
>
>
> On Saturday, 1 February 2014 5:32 PM, pragya jain
> <prag_2648 at yahoo.co.in> wrote:
>
> 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
>
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
More information about the Openstack
mailing list