]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't change rados object's mtime when update olh 18214/head
authorlu.shasha <lu.shasha@eisoo.com>
Tue, 10 Oct 2017 07:51:04 +0000 (15:51 +0800)
committerlu.shasha <lu.shasha@eisoo.com>
Tue, 10 Oct 2017 08:54:00 +0000 (16:54 +0800)
commit3189edc28ea6d3c117c2e2f0664f45c69f67ab50
tree2dd0d8253ea56d499f5693673bca97cae00d2bb5
parent6cd9c71de67a7e0b92b85aa29f42b5cb3d0dd1fc
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>
src/rgw/rgw_rados.cc