diff options
author | Eric Cox <eric.cox@mongodb.com> | 2021-10-08 22:19:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-08 23:34:26 +0000 |
commit | 3f69e79c0ecda4c76efa25b66ea5cdc87acd4c98 (patch) | |
tree | 3a0cd26810cdd8008f809c40df6007a8670f3de5 /src/mongo/s | |
parent | 4aaacbdc5159eaf3365880f5a0b84db14c2f6941 (diff) | |
download | mongo-3f69e79c0ecda4c76efa25b66ea5cdc87acd4c98.tar.gz |
SERVER-59924 Error executing aggregate with $out with "available" read concern on sharded clusters
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/cluster_commands_helpers.cpp | 12 | ||||
-rw-r--r-- | src/mongo/s/cluster_commands_helpers.h | 12 | ||||
-rw-r--r-- | src/mongo/s/query/cluster_aggregation_planner.cpp | 3 |
3 files changed, 1 insertions, 26 deletions
diff --git a/src/mongo/s/cluster_commands_helpers.cpp b/src/mongo/s/cluster_commands_helpers.cpp index 577e3ab2a3e..0b6759c211c 100644 --- a/src/mongo/s/cluster_commands_helpers.cpp +++ b/src/mongo/s/cluster_commands_helpers.cpp @@ -506,18 +506,6 @@ AsyncRequestsSender::Response executeCommandAgainstDatabasePrimary( return std::move(responses.front()); } -AsyncRequestsSender::Response executeRawCommandAgainstDatabasePrimary( - OperationContext* opCtx, - StringData dbName, - const CachedDatabaseInfo& dbInfo, - const BSONObj& cmdObj, - const ReadPreferenceSetting& readPref, - Shard::RetryPolicy retryPolicy) { - auto responses = - gatherResponses(opCtx, dbName, readPref, retryPolicy, {{dbInfo.primaryId(), cmdObj}}); - return std::move(responses.front()); -} - AsyncRequestsSender::Response executeCommandAgainstShardWithMinKeyChunk( OperationContext* opCtx, const NamespaceString& nss, diff --git a/src/mongo/s/cluster_commands_helpers.h b/src/mongo/s/cluster_commands_helpers.h index 9638972b5ab..d6443df0407 100644 --- a/src/mongo/s/cluster_commands_helpers.h +++ b/src/mongo/s/cluster_commands_helpers.h @@ -253,18 +253,6 @@ AsyncRequestsSender::Response executeCommandAgainstDatabasePrimary( Shard::RetryPolicy retryPolicy); /** - * Utility for dispatching commands against the primary of a database. Does not attach a database or - * shard version to the command object, but instead issues it exactly as provided. Does not retry. - */ -AsyncRequestsSender::Response executeRawCommandAgainstDatabasePrimary( - OperationContext* opCtx, - StringData dbName, - const CachedDatabaseInfo& dbInfo, - const BSONObj& cmdObj, - const ReadPreferenceSetting& readPref, - Shard::RetryPolicy retryPolicy); - -/** * Utility for dispatching commands against the shard with the MinKey chunk for the namespace and * attaching the appropriate shard version. * diff --git a/src/mongo/s/query/cluster_aggregation_planner.cpp b/src/mongo/s/query/cluster_aggregation_planner.cpp index 507e9adf9e4..e5f0c36e552 100644 --- a/src/mongo/s/query/cluster_aggregation_planner.cpp +++ b/src/mongo/s/query/cluster_aggregation_planner.cpp @@ -148,8 +148,7 @@ BSONObj createCommandForMergingShard(Document serializedCommand, } // Attach the IGNORED chunk version to the command. On the shard, this will skip the actual - // version check but will nonetheless mark the operation as versioned, indicating that any - // internal operations executed by the pipeline should also be appropriately versioned. + // version check but will nonetheless mark the operation as versioned. auto mergeCmdObj = appendShardVersion(mergeCmd.freeze().toBson(), ChunkVersion::IGNORED()); // Attach the read and write concerns if needed, and return the final command object. |