]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: enforce RD, WR flags for class methods
authorSage Weil <sage@inktank.com>
Thu, 15 Aug 2013 23:19:21 +0000 (16:19 -0700)
committerSage Weil <sage@inktank.com>
Fri, 16 Aug 2013 00:21:29 +0000 (17:21 -0700)
commit359850b9f605b7cb2577d6ad1be86cdeacb0a35b
tree9a5aedd5221d27be2afee9b1166f5e4e26a103cf
parentf61698d56466a4c79230c24985c4a5285390ed8e
osd: enforce RD, WR flags for class methods

Class methods are marked with RD and WR to help the OSD decide when we need
to flush objects or require certain permissions.  Ensure that methods do
not step outside their advertised capabilities by keeping a counter of rd
and wr ops we perform in do_osd_ops() and making sure that class methods,
and any ops the indirectly call, do not break the rules.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h