Comment 2 for bug 1540884

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

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

commit f2fca9aafa17e45b668c6f76b256927681cc463a
Author: Alistair Coles <email address hidden>
Date: Tue Feb 2 11:43:44 2016 +0000

    Fix time-shifting of objects PUT with container-sync

    When container-sync PUTs an object to a destination container
    it uses the timestamp from the container row rather than the
    actual timestamp of the object being copied. The actual timestamp
    of the object can be newer, so the sync'd object may end up with
    the right content but at the wrong, older, timestamp.

    This patch changes the timestamp sent with the sync'd object
    to be that of the actual source object being sent.

    Drive-by fix to make code more readable by removing a variable
    rename mid-function, fix a typo and remove a redundant function
    call.

    Change-Id: I800e6de4cdeea289864414980a96f5929281da04
    Closes-Bug: #1540884