diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2019-09-03 16:04:22 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-03 16:04:22 +0000 |
commit | e4a7931c7932cd64b9a09b45e03ad45bf7fcaa0a (patch) | |
tree | 8b17833c5f0916600f6c0aaf164db27d68e243f2 /src/mongo/db/sessions_collection_config_server.cpp | |
parent | e924930b6dd631ef3335d5eb901237fd0dec22af (diff) | |
download | mongo-e4a7931c7932cd64b9a09b45e03ad45bf7fcaa0a.tar.gz |
SERVER-43110 Include error status in log message for failure to create TTL index on all shards for sessions collection
Diffstat (limited to 'src/mongo/db/sessions_collection_config_server.cpp')
-rw-r--r-- | src/mongo/db/sessions_collection_config_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/sessions_collection_config_server.cpp b/src/mongo/db/sessions_collection_config_server.cpp index 17741f31dda..b9b339a5606 100644 --- a/src/mongo/db/sessions_collection_config_server.cpp +++ b/src/mongo/db/sessions_collection_config_server.cpp @@ -107,8 +107,8 @@ Status SessionsCollectionConfigServer::setupSessionsCollection(OperationContext* res = _generateIndexesIfNeeded(opCtx); if (!res.isOK()) { - log() << "Failed to generate TTL index for config.system.sessions on all shards, " - << "will try again on the next refresh interval"; + log() << "Failed to generate TTL index for config.system.sessions on all shards: " + << res.reason() << ", will try again on the next refresh interval"; } return res; |