Skip to content

Commit

Permalink
Merge pull request ceph#18987 from ivancich/wip-remove-sys-obj-get-state
Browse files Browse the repository at this point in the history
rgw clean-up: remove unused var & func in RGWRados::SystemObject

Reviewed-by: Yehuda Sadeh <[email protected]>
  • Loading branch information
cbodley authored Nov 20, 2017
2 parents 50412f7 + a5c88f6 commit a8ba8bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/rgw/rgw_rados.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9851,11 +9851,6 @@ int RGWRados::Object::Read::range_to_ofs(uint64_t obj_size, int64_t &ofs, int64_
return 0;
}

int RGWRados::SystemObject::get_state(RGWRawObjState **pstate, RGWObjVersionTracker *objv_tracker)
{
return store->get_system_obj_state(&ctx, obj, pstate, objv_tracker);
}

int RGWRados::stat_system_obj(RGWObjectCtx& obj_ctx,
RGWRados::SystemObject::Read::GetObjState& state,
rgw_raw_obj& obj,
Expand Down
10 changes: 4 additions & 6 deletions src/rgw/rgw_rados.h
Original file line number Diff line number Diff line change
Expand Up @@ -2650,13 +2650,11 @@ class RGWRados
RGWObjectCtx& ctx;
rgw_raw_obj obj;

RGWObjState *state;

protected:
int get_state(RGWRawObjState **pstate, RGWObjVersionTracker *objv_tracker);

public:
SystemObject(RGWRados *_store, RGWObjectCtx& _ctx, rgw_raw_obj& _obj) : store(_store), ctx(_ctx), obj(_obj), state(NULL) {}

SystemObject(RGWRados *_store, RGWObjectCtx& _ctx, rgw_raw_obj& _obj) :
store(_store), ctx(_ctx), obj(_obj)
{}

void invalidate_state();

Expand Down

0 comments on commit a8ba8bc

Please sign in to comment.