Skip to content

Commit

Permalink
osdc: Do not use lock_guard as unique_lock
Browse files Browse the repository at this point in the history
Signed-off-by: Shinobu Kinjo <[email protected]>
  • Loading branch information
shinobu-x committed Jan 3, 2018
1 parent 24bc418 commit dae91f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osdc/Objecter.h
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ class Objecter : public md_config_obs_t, public Dispatcher {
version_t last_seen_pgmap_version;

mutable boost::shared_mutex rwlock;
using lock_guard = std::unique_lock<decltype(rwlock)>;
using lock_guard = std::lock_guard<decltype(rwlock)>;
using unique_lock = std::unique_lock<decltype(rwlock)>;
using shared_lock = boost::shared_lock<decltype(rwlock)>;
using shunique_lock = ceph::shunique_lock<decltype(rwlock)>;
Expand Down

0 comments on commit dae91f3

Please sign in to comment.