]> 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)
committerNathan Cutler <ncutler@suse.com>
Tue, 4 Jul 2017 11:28:33 +0000 (13:28 +0200)
commit5a69e33057982d78157b75bce3fc458e03260d9e
treeabfee65d8283d9779978057c8e8610242f190cf1
parentccde4da15c9ea50a4663b0697d0cef827c26f9c7
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>
(cherry picked from commit 532dc4b68e538c189ef828f67cecd0d647a62250)
src/client/Client.cc