From: Samuel Just Date: Wed, 27 Feb 2013 01:35:40 +0000 (-0800) Subject: OpRequest: rmw_flags may actually be 0 X-Git-Tag: v0.59~91 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c313423cfda55a2231e000cd5ff20729310867f8;p=ceph.git 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 --- diff --git a/src/osd/OpRequest.h b/src/osd/OpRequest.h index 432bddb16725..e12fbe00c53d 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(); }