summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/lock_stats.cpp
diff options
context:
space:
mode:
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) {