summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2014-03-16 12:38:55 +0800
committerYan, Zheng <zheng.z.yan@intel.com>2014-03-16 12:42:35 +0800
commit1ae331479d1680c77d747103f9a217e260f3549b (patch)
treea03bc869662f84cbeea971a803b7f5c8ee03d9f0
parent4fdeafef06b1068bd95f005123c56a3b8a379be5 (diff)
downloadceph-1ae331479d1680c77d747103f9a217e260f3549b.tar.gz
client: force getattr when inline data is missing
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
-rw-r--r--src/client/Client.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Client.cc b/src/client/Client.cc
index 8b5a036e513..c770286a919 100644
--- a/src/client/Client.cc
+++ b/src/client/Client.cc
@@ -5891,7 +5891,7 @@ int Client::_read(Fh *f, int64_t offset, uint64_t size, bufferlist *bl)
//bool lazy = f->mode == CEPH_FILE_MODE_LAZY;
if (in->inline_version == 0) {
- int r = _getattr(in, CEPH_STAT_CAP_INLINE_DATA);
+ int r = _getattr(in, CEPH_STAT_CAP_INLINE_DATA, -1, -1, true);
if (r < 0)
return r;
assert(in->inline_version > 0);
@@ -6256,7 +6256,7 @@ int Client::_write(Fh *f, int64_t offset, uint64_t size, const char *buf)
utime_t start = ceph_clock_now(cct);
if (in->inline_version == 0) {
- int r = _getattr(in, CEPH_STAT_CAP_INLINE_DATA);
+ int r = _getattr(in, CEPH_STAT_CAP_INLINE_DATA, -1, -1, true);
if (r < 0)
return r;
assert(in->inline_version > 0);