From 6750cab2d6f2c5f928f9c2d2c356047f93e9ce30 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Fri, 23 Oct 2015 14:15:54 -0400 Subject: [PATCH] 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 (cherry picked from commit 652856321b0f14293cd885c865552d5b7e787f9a) --- src/osd/OpRequest.cc | 1 + 1 file changed, 1 insertion(+) 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(); } -- 2.47.3