]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't change rados object's mtime when update olh 18870/head
authorlu.shasha <lu.shasha@eisoo.com>
Tue, 10 Oct 2017 07:51:04 +0000 (15:51 +0800)
committerShinobu Kinjo <shinobu@redhat.com>
Fri, 10 Nov 2017 07:18:15 +0000 (02:18 -0500)
commita88e48e7d9cba77db8cb5aeb9512733d62a08382
tree24cd863bdec4e75412dcb33b4ea7b4ce49c83a33
parenta7c8c8101d4b78b4d6e437620b2c1a38cd752c3f
rgw: don't change rados object's mtime when update olh

null instance and olh share rados object. Null instance using the rados object mtime as its mtime. When olh updated, the rados object mtime will change.
Thus the null instance will be incorrect. When list objects in bucket, the mtime is correct, down the null instance the last modified time is incorrect.
So when update olh, using the previous mtime, thus the null instance mtime will be correct.

Fixes: http://tracker.ceph.com/issues/21743
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
(cherry picked from commit 3189edc28ea6d3c117c2e2f0664f45c69f67ab50)
src/rgw/rgw_rados.cc