diff options
author | Andrew Witten <andrew.witten@mongodb.com> | 2023-01-05 18:25:04 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-23 22:41:56 +0000 |
commit | 126bac30396cb6b4f2d571e96997eae1e4eb2df2 (patch) | |
tree | fcb4b3a949c4ccf549ce12fcacd94edaecb817d4 /src | |
parent | ede7bdea766fff40678d03a7051b0d15de0fbba6 (diff) | |
download | mongo-126bac30396cb6b4f2d571e96997eae1e4eb2df2.tar.gz |
SERVER-72430 check for null migration progress ptr
(cherry picked from commit af1ad78010f1396ad09f2f96e16705598f45a54b)
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/s/migration_destination_manager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/migration_destination_manager.h b/src/mongo/db/s/migration_destination_manager.h index 74d737f8302..8881bcbcdee 100644 --- a/src/mongo/db/s/migration_destination_manager.h +++ b/src/mongo/db/s/migration_destination_manager.h @@ -292,11 +292,11 @@ private: stdx::thread _migrateThreadHandle; long long _getNumCloned() { - return _migrationCloningProgress->getNumCloned(); + return _migrationCloningProgress ? _migrationCloningProgress->getNumCloned() : 0; } long long _getNumBytesCloned() { - return _migrationCloningProgress->getNumBytes(); + return _migrationCloningProgress ? _migrationCloningProgress->getNumBytes() : 0; } boost::optional<UUID> _migrationId; |