Skip to content

Commit

Permalink
OpRequest: rmw_flags may actually be 0
Browse files Browse the repository at this point in the history
If the operation includes only an invalid method,
the flags will be 0.

Reviewed-by: Yehuda Sadeh <[email protected]>
Signed-off-by: Samuel Just <[email protected]>
  • Loading branch information
Samuel Just committed Feb 27, 2013
1 parent d6b4a7b commit c313423
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/osd/OpRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }
Expand Down

0 comments on commit c313423

Please sign in to comment.