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.
Reviewed: https:/ /review. openstack. org/275147 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=f2fca9aafa1 7e45b668c6f76b2 56927681cc463a
Committed: https:/
Submitter: Jenkins
Branch: master
commit f2fca9aafa17e45 b668c6f76b25692 7681cc463a
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: I800e6de4cdeea2 89864414980a96f 5929281da04
Closes-Bug: #1540884