]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: simplify remove_cap interface 12161/head
authorJohn Spray <john.spray@redhat.com>
Tue, 29 Nov 2016 17:13:29 +0000 (17:13 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 29 Nov 2016 17:15:08 +0000 (17:15 +0000)
commitd6a6b03a0dd239a889332fd641cc6a3e99b961c1
tree2ead565ea8f83b46b496b4b16cd45557f1fd545d
parent89fc88ef2ed2518e96bd60f4be35c8987453e188
client: simplify remove_cap interface

All this complexity only existed to handle the
case where trim wanted to iterate over an xlist
without getting disturbed by a deletion.  We
can simply increment the iterator before
maybe-deleting the Cap.

Signed-off-by: John Spray <john.spray@redhat.com>
src/client/Client.cc
src/client/MetaSession.h