From: Matt Benjamin Date: Thu, 14 Jan 2016 22:25:45 +0000 (-0500) Subject: librgw: fix timestamp on create (another case) X-Git-Tag: v10.1.0~382^2~32 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2a860f422b24c2183f74a8b0e224671cea730902;p=ceph.git librgw: fix timestamp on create (another case) In the rgw_create regular file case, the timestamp and size update logic (though present) was being bypassed because the "FLAG_CREATE" indicator which formerly propagated up from RGWLibFS::lookup_fh was lost in the LRU change, which refactored the code for creating new RGWFileHandle objects. Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index db928fbb8492..f1a4265b922c 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -703,6 +703,7 @@ namespace rgw { cohort::lru::FLAG_INITIAL)); if (fh) { fh_cache.insert_latched(fh, lat, RGWFileHandle::FHCache::FLAG_UNLOCK); + get<1>(fhr) |= RGWFileHandle::FLAG_CREATE; goto out; /* !LATCHED */ } else { lat.lock->unlock();