summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/lock_stats.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-06-10 18:08:48 -0400
committerAndrew Morrow <acm@mongodb.com>2015-06-10 22:37:49 -0400
commitd7d1fdb75966c684e9a42150e6e9b69c4a10ee08 (patch)
treed28b0767cbd8c1a09535f1676152e7ac57e829ce /src/mongo/db/concurrency/lock_stats.cpp
parenta9b6612f5322f916298c19a6728817a1034c6aab (diff)
downloadmongo-d7d1fdb75966c684e9a42150e6e9b69c4a10ee08.tar.gz
SERVER-17308 Replace boost::scoped_ptr<T> with std::unique_ptr<T>
Diffstat (limited to 'src/mongo/db/concurrency/lock_stats.cpp')
-rw-r--r--src/mongo/db/concurrency/lock_stats.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/concurrency/lock_stats.cpp b/src/mongo/db/concurrency/lock_stats.cpp
index 70d5a3da065..c115244f369 100644
--- a/src/mongo/db/concurrency/lock_stats.cpp
+++ b/src/mongo/db/concurrency/lock_stats.cpp
@@ -55,14 +55,14 @@ namespace mongo {
const char* sectionName,
const PerModeLockStatCounters& stat) const {
- boost::scoped_ptr<BSONObjBuilder> section;
+ std::unique_ptr<BSONObjBuilder> section;
// All indexing below starts from offset 1, because we do not want to report/account
// position 0, which is a sentinel value for invalid resource/no lock.
// Num acquires
{
- boost::scoped_ptr<BSONObjBuilder> numAcquires;
+ std::unique_ptr<BSONObjBuilder> numAcquires;
for (int mode = 1; mode < LockModesCount; mode++) {
const long long value = CounterOps::get(stat.modeStats[mode].numAcquisitions);
if (value > 0) {
@@ -81,7 +81,7 @@ namespace mongo {
// Num waits
{
- boost::scoped_ptr<BSONObjBuilder> numWaits;
+ std::unique_ptr<BSONObjBuilder> numWaits;
for (int mode = 1; mode < LockModesCount; mode++) {
const long long value = CounterOps::get(stat.modeStats[mode].numWaits);
if (value > 0) {
@@ -100,7 +100,7 @@ namespace mongo {
// Total time waiting
{
- boost::scoped_ptr<BSONObjBuilder> timeAcquiring;
+ std::unique_ptr<BSONObjBuilder> timeAcquiring;
for (int mode = 1; mode < LockModesCount; mode++) {
const long long value = CounterOps::get(stat.modeStats[mode].combinedWaitTimeMicros);
if (value > 0) {
@@ -119,7 +119,7 @@ namespace mongo {
// Deadlocks
{
- boost::scoped_ptr<BSONObjBuilder> deadlockCount;
+ std::unique_ptr<BSONObjBuilder> deadlockCount;
for (int mode = 1; mode < LockModesCount; mode++) {
const long long value = CounterOps::get(stat.modeStats[mode].numDeadlocks);
if (value > 0) {