]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: ensure op rwm flags are checked before they are initialized
authorJason Dillaman <dillaman@redhat.com>
Fri, 23 Oct 2015 18:15:54 +0000 (14:15 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 23 Oct 2015 18:15:54 +0000 (14:15 -0400)
These flags are now lazy-initialized within the PG thread at the
start of op processing instead of once the message is received.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/osd/OpRequest.cc

index 65011a1129a289906576b9003b4b2efed94c2ca4..60fff4c14b0dd509a49cb33be144fe175f8a256e 100644 (file)
@@ -84,6 +84,7 @@ void OpRequest::_unregistered() {
 }
 
 bool OpRequest::check_rmw(int flag) {
+  assert(rmw_flags != 0);
   return rmw_flags & flag;
 }
 bool OpRequest::may_read() { return need_read_cap() || need_class_read_cap(); }