]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: getattr before read on ceph.* xattrs
authorJohn Spray <john.spray@redhat.com>
Wed, 15 Mar 2017 15:32:47 +0000 (15:32 +0000)
committerJohn Spray <john.spray@redhat.com>
Fri, 14 Apr 2017 10:38:48 +0000 (06:38 -0400)
commit532dc4b68e538c189ef828f67cecd0d647a62250
treec91228d66d10d8e7563efff94a043f2c423c27d2
parentd51c02731179e6bc76818e221a8fd3f24f4bfd9a
client: getattr before read on ceph.* xattrs

Previously we were returning values for quota, layout
xattrs without any kind of update -- the user just got
whatever happened to be in our cache.

Clearly this extra round trip has a cost, but reads of
these xattrs are fairly rare, happening on admin
intervention rather than in normal operation.

Fixes: http://tracker.ceph.com/issues/17939
Signed-off-by: John Spray <john.spray@redhat.com>
src/client/Client.cc