summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/exec/working_set.cpp2
-rw-r--r--src/mongo/db/pipeline/document_source_cursor.cpp2
-rw-r--r--src/mongo/db/pipeline/document_source_sort.cpp2
-rw-r--r--src/mongo/s/chunk_manager_targeter.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/exec/working_set.cpp b/src/mongo/db/exec/working_set.cpp
index 3d268cfde28..8cfcd0f9d70 100644
--- a/src/mongo/db/exec/working_set.cpp
+++ b/src/mongo/db/exec/working_set.cpp
@@ -119,7 +119,7 @@ namespace mongo {
}
bool WorkingSetMember::hasComputed(const WorkingSetComputedDataType type) const {
- return _computed[type];
+ return _computed[type].get();
}
const WorkingSetComputedData* WorkingSetMember::getComputed(const WorkingSetComputedDataType type) const {
diff --git a/src/mongo/db/pipeline/document_source_cursor.cpp b/src/mongo/db/pipeline/document_source_cursor.cpp
index de7e49192b5..05b384fd3a6 100644
--- a/src/mongo/db/pipeline/document_source_cursor.cpp
+++ b/src/mongo/db/pipeline/document_source_cursor.cpp
@@ -141,7 +141,7 @@ namespace mongo {
if (!_limit) {
_limit = dynamic_cast<DocumentSourceLimit*>(nextSource.get());
- return _limit; // false if next is not a $limit
+ return _limit.get(); // false if next is not a $limit
}
else {
return _limit->coalesce(nextSource);
diff --git a/src/mongo/db/pipeline/document_source_sort.cpp b/src/mongo/db/pipeline/document_source_sort.cpp
index fc47b80ec48..0a51b8b5b28 100644
--- a/src/mongo/db/pipeline/document_source_sort.cpp
+++ b/src/mongo/db/pipeline/document_source_sort.cpp
@@ -92,7 +92,7 @@ namespace mongo {
bool DocumentSourceSort::coalesce(const intrusive_ptr<DocumentSource> &pNextSource) {
if (!limitSrc) {
limitSrc = dynamic_cast<DocumentSourceLimit*>(pNextSource.get());
- return limitSrc; // false if next is not a $limit
+ return limitSrc.get(); // false if next is not a $limit
}
else {
return limitSrc->coalesce(pNextSource);
diff --git a/src/mongo/s/chunk_manager_targeter.cpp b/src/mongo/s/chunk_manager_targeter.cpp
index e07cdc83324..6c03eb96376 100644
--- a/src/mongo/s/chunk_manager_targeter.cpp
+++ b/src/mongo/s/chunk_manager_targeter.cpp
@@ -48,7 +48,7 @@ namespace mongo {
*errMsg = ex.toString();
}
- return config;
+ return config.get();
}
ChunkManagerTargeter::ChunkManagerTargeter() :