Skip to content

Commit

Permalink
Objecter: Take RLocker when call is_active.
Browse files Browse the repository at this point in the history
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
  • Loading branch information
majianpeng committed Sep 1, 2015
1 parent bf75b30 commit 89f0112
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/osdc/Objecter.h
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,7 @@ class Objecter : public md_config_obs_t, public Dispatcher {
public:
ceph_tid_t op_submit(Op *op, int *ctx_budget = NULL);
bool is_active() {
RWLock::RLocker l(rwlock);
return !((!inflight_ops.read()) && linger_ops.empty() && poolstat_ops.empty() && statfs_ops.empty());
}

Expand Down

0 comments on commit 89f0112

Please sign in to comment.