From: Jason Dillaman Date: Fri, 23 Oct 2015 18:15:54 +0000 (-0400) Subject: osd: ensure op rwm flags are checked before they are initialized X-Git-Tag: v10.0.1~118^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=652856321b0f14293cd885c865552d5b7e787f9a;p=ceph.git osd: ensure op rwm flags are checked before they are initialized 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 --- diff --git a/src/osd/OpRequest.cc b/src/osd/OpRequest.cc index 65011a1129a..60fff4c14b0 100644 --- a/src/osd/OpRequest.cc +++ b/src/osd/OpRequest.cc @@ -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(); }