Skip to content

Commit

Permalink
rgw:returned value of function reuires exception handling
Browse files Browse the repository at this point in the history
the returned value of rgw_bucket_set_attrs() reuires exception handling

Signed-off-by: dengxiafubi <xhwcqupt@sina.com>
  • Loading branch information
dengxiafubi authored and dengxiafubi committed Aug 16, 2017
1 parent 24d4415 commit 3e528f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rgw/rgw_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4775,6 +4775,11 @@ void RGWDeleteLC::execute()
}
}
op_ret = rgw_bucket_set_attrs(store, s->bucket_info, attrs, &s->bucket_info.objv_tracker);
if (op_ret < 0) {
ldout(s->cct, 0) << "RGWLC::RGWDeleteLC() failed to set attrs on bucket=" << s->bucket.name
<< " returned err=" << op_ret << dendl;
return;
}
string shard_id = s->bucket.name + ':' +s->bucket.bucket_id;
pair<string, int> entry(shard_id, lc_uninitial);
string oid;
Expand Down

0 comments on commit 3e528f1

Please sign in to comment.