diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-01-19 16:24:05 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-01-24 13:45:53 -0500 |
commit | bc433b50e0205dfd0a8bfb6906393d841fd8193a (patch) | |
tree | 969334ca08f56dd05254f4aa10b69d74dc080e65 /src/mongo/db/s/active_migrations_registry.cpp | |
parent | fbf03e93dad1d2d081944c05436e777380873eb2 (diff) | |
download | mongo-bc433b50e0205dfd0a8bfb6906393d841fd8193a.tar.gz |
SERVER-28670 Add sharding CatalogCache and donor metrics to serverStatus
Includes metrics for refresh, clone and migration critical section
duration.
Diffstat (limited to 'src/mongo/db/s/active_migrations_registry.cpp')
-rw-r--r-- | src/mongo/db/s/active_migrations_registry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/active_migrations_registry.cpp b/src/mongo/db/s/active_migrations_registry.cpp index 9aadaeb1937..a8006a06e6f 100644 --- a/src/mongo/db/s/active_migrations_registry.cpp +++ b/src/mongo/db/s/active_migrations_registry.cpp @@ -109,7 +109,7 @@ BSONObj ActiveMigrationsRegistry::getActiveMigrationStatusReport(OperationContex AutoGetCollection autoColl(opCtx, nss.get(), MODE_IS); auto css = CollectionShardingState::get(opCtx, nss.get()); - if (css && css->getMigrationSourceManager()) { + if (css->getMigrationSourceManager()) { return css->getMigrationSourceManager()->getMigrationStatusReport(); } } |