Comment 7 for bug 1657246

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (master)

Reviewed: https://review.openstack.org/444604
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=108501a8c130f4b013c75603b0263f585f6ba535
Submitter: Jenkins
Branch: master

commit 108501a8c130f4b013c75603b0263f585f6ba535
Author: Janie Richling <email address hidden>
Date: Sat Mar 11 13:30:35 2017 -0600

    Log the correct request type of a subrequest downstream of copy

    Before this change, subrequests made while servicing a copy would
    result in logging the request type from the copy PUT/GET request
    instead of the type from the subrequest being logged.

    In order to have the correct requst type logged for subrequests:
    - Changed subrequest environments to not inherit the orig_req_method
      of the enclosing request.
    - Changed copy to be more picky about when it sets orig_req_method

    In addition, subrequest environments will no longer inherit the
    swift.log_info from the enclosing request. That inheritance had
    been added at Ic96a92e938589a2f6add35a40741fd062f1c29eb
    along with swift.orig_req_method.

    Change-Id: I1ccb2665b6cd2887659e548e55a26aa00de879e3
    Closes-Bug: #1657246