From c313423cfda55a2231e000cd5ff20729310867f8 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 26 Feb 2013 17:35:40 -0800 Subject: [PATCH] OpRequest: rmw_flags may actually be 0 If the operation includes only an invalid method, the flags will be 0. Reviewed-by: Yehuda Sadeh Signed-off-by: Samuel Just --- src/osd/OpRequest.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osd/OpRequest.h b/src/osd/OpRequest.h index 432bddb16725f..e12fbe00c53dd 100644 --- a/src/osd/OpRequest.h +++ b/src/osd/OpRequest.h @@ -89,7 +89,6 @@ struct OpRequest : public TrackedOp { int rmw_flags; bool check_rmw(int flag) { - assert(rmw_flags); return rmw_flags & flag; } bool may_read() { return need_read_cap() || need_class_read_cap(); } -- 2.39.5