]> 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)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Wed, 18 Nov 2015 07:33:41 +0000 (13:03 +0530)
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>
(cherry picked from commit 652856321b0f14293cd885c865552d5b7e787f9a)

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(); }