diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-03-13 13:38:22 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-03-13 13:38:22 +0000 |
commit | 9bb1014f5d84342bd6390e7fd33cec778e451baa (patch) | |
tree | c870fd21e957e5cc5946171ddc2c973126a3f54f /storage | |
parent | 4af9166212914a827d0d21a6e28245aa27351943 (diff) |
Use deducted template arguments.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/common/content_bucket_space.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/src/vespa/storage/common/content_bucket_space.cpp b/storage/src/vespa/storage/common/content_bucket_space.cpp index 8ddd1d5677f..2bae118e364 100644 --- a/storage/src/vespa/storage/common/content_bucket_space.cpp +++ b/storage/src/vespa/storage/common/content_bucket_space.cpp @@ -16,28 +16,28 @@ ContentBucketSpace::ContentBucketSpace(document::BucketSpace bucketSpace) void ContentBucketSpace::setClusterState(std::shared_ptr<const lib::ClusterState> clusterState) { - std::lock_guard<std::mutex> guard(_lock); + std::lock_guard guard(_lock); _clusterState = std::move(clusterState); } std::shared_ptr<const lib::ClusterState> ContentBucketSpace::getClusterState() const { - std::lock_guard<std::mutex> guard(_lock); + std::lock_guard guard(_lock); return _clusterState; } void ContentBucketSpace::setDistribution(std::shared_ptr<const lib::Distribution> distribution) { - std::lock_guard<std::mutex> guard(_lock); + std::lock_guard guard(_lock); _distribution = std::move(distribution); } std::shared_ptr<const lib::Distribution> ContentBucketSpace::getDistribution() const { - std::lock_guard<std::mutex> guard(_lock); + std::lock_guard guard(_lock); return _distribution; } |