From: Liu Yuan <tailai.ly at taobao.com> We don't need check oid == 0 or opcode & flags, because this is always guanranteed by the caller. Signed-off-by: Liu Yuan <tailai.ly at taobao.com> --- sheep/group.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/sheep/group.c b/sheep/group.c index f9a5437..a98da7f 100644 --- a/sheep/group.c +++ b/sheep/group.c @@ -974,15 +974,7 @@ int is_access_to_busy_objects(uint64_t oid) { struct request *req; - if (!oid) - return 0; - list_for_each_entry(req, &sys->outstanding_req_list, r_wlist) { - if (req->rq.flags & SD_FLAG_CMD_RECOVERY) { - if (req->rq.opcode != SD_OP_READ_OBJ) - eprintf("bug\n"); - continue; - } if (oid == req->local_oid) return 1; } -- 1.7.8.2 |