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>
(cherry picked from commit 89f0112)
  • Loading branch information
majianpeng authored and ldachary committed Oct 2, 2015
1 parent e72bdc3 commit 53316f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/osdc/Objecter.h
Expand Up @@ -1948,6 +1948,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 53316f3

Please sign in to comment.