summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection_config_server.cpp
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2019-09-03 16:04:22 +0000
committerevergreen <evergreen@mongodb.com>2019-09-03 16:04:22 +0000
commite4a7931c7932cd64b9a09b45e03ad45bf7fcaa0a (patch)
tree8b17833c5f0916600f6c0aaf164db27d68e243f2 /src/mongo/db/sessions_collection_config_server.cpp
parente924930b6dd631ef3335d5eb901237fd0dec22af (diff)
downloadmongo-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.cpp4
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;