diff options
Diffstat (limited to 'src/mongo/db/pipeline/sharded_agg_helpers.cpp')
-rw-r--r-- | src/mongo/db/pipeline/sharded_agg_helpers.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/sharded_agg_helpers.cpp b/src/mongo/db/pipeline/sharded_agg_helpers.cpp index aca3354a9b4..bf29d0c5e18 100644 --- a/src/mongo/db/pipeline/sharded_agg_helpers.cpp +++ b/src/mongo/db/pipeline/sharded_agg_helpers.cpp @@ -61,8 +61,7 @@ #include "mongo/s/query/document_source_merge_cursors.h" #include "mongo/s/query/establish_cursors.h" #include "mongo/s/query_analysis_sampler_util.h" -#include "mongo/s/router.h" -#include "mongo/s/stale_exception.h" +#include "mongo/s/router_role.h" #include "mongo/s/transaction_router.h" #include "mongo/util/fail_point.h" #include "mongo/util/overloaded_visitor.h" @@ -1183,7 +1182,7 @@ DispatchShardPipelineResults dispatchShardPipeline( targetedSampleId, ReadPreferenceSetting::get(opCtx)); - } catch (const StaleConfigException& e) { + } catch (const ExceptionFor<ErrorCodes::StaleConfig>& e) { // Check to see if the command failed because of a stale shard version or something // else. auto staleInfo = e.extraInfo<StaleConfigInfo>(); |