diff options
Diffstat (limited to 'src/mongo/db/s/migration_source_manager.h')
| -rw-r--r-- | src/mongo/db/s/migration_source_manager.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/mongo/db/s/migration_source_manager.h b/src/mongo/db/s/migration_source_manager.h index d93c701f3d5..fed10b56272 100644 --- a/src/mongo/db/s/migration_source_manager.h +++ b/src/mongo/db/s/migration_source_manager.h @@ -97,8 +97,8 @@ public: * * May throw any exception. Known exceptions are: * - InvalidOptions if the operation context is missing shard version - * - StaleConfigException if the expected collection version does not match what we find it - * to be after acquiring the distributed lock. + * - StaleConfig if the expected collection version does not match what we find it to be after + * acquiring the distributed lock. */ MigrationSourceManager(OperationContext* opCtx, ShardsvrMoveRange&& request, @@ -176,6 +176,17 @@ public: return _args.getCommandParameter(); } + boost::optional<UUID> getMigrationId() { + if (_coordinator) { + return _coordinator->getMigrationId(); + } + return boost::none; + } + + long long getOpTimeMillis() { + return _entireOpTimer.millis(); + } + private: // Used to track the current state of the source manager. See the methods above, which have // comments explaining the various state transitions. |
