summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_client_cursor.h
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2018-04-05 17:38:02 -0400
committerCharlie Swanson <charlie.swanson@mongodb.com>2018-04-05 21:28:45 -0400
commit74aa83de852e3f3740eccb065a7d43d7708e138a (patch)
tree609509abc9dfe4b68c8fa77e9984622d4f15ca0e /src/mongo/s/query/cluster_client_cursor.h
parent41f13212be110fc2360804fc04982273e43910f4 (diff)
downloadmongo-74aa83de852e3f3740eccb065a7d43d7708e138a.tar.gz
SERVER-33323 Fix pushBack, remove const from size_t, and fix s390x
Check if the pipeline is empty before setting the new stage to point to the last one in Pipeline::pushBack(). Remove unnecessary const qualifier from std::size_t return types. Work around a compiler bug on s390x by allowing a CursorResponse to be copied.
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor.h')
-rw-r--r--src/mongo/s/query/cluster_client_cursor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor.h b/src/mongo/s/query/cluster_client_cursor.h
index 9c01c013ce6..1afb5ae1b38 100644
--- a/src/mongo/s/query/cluster_client_cursor.h
+++ b/src/mongo/s/query/cluster_client_cursor.h
@@ -113,7 +113,7 @@ public:
/**
* Returns a reference to the vector of remote hosts involved in this operation.
*/
- virtual const std::size_t getNumRemotes() const = 0;
+ virtual std::size_t getNumRemotes() const = 0;
/**
* Returns the number of result documents returned so far by this cursor via the next() method.