summaryrefslogtreecommitdiff
path: root/src/mongo/db/index
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-03-02 17:57:19 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-03 00:03:47 +0000
commit7a7ff689ca4ab64caab4c96e4947c30257d61b89 (patch)
tree8b0a974d356b1c097f87162b0780b75fdc6a7298 /src/mongo/db/index
parentaeb3b2ac2f9394ba10a4e0b93461a5f97d866f14 (diff)
downloadmongo-7a7ff689ca4ab64caab4c96e4947c30257d61b89.tar.gz
SERVER-46235 add IndexDescriptor::toBSON() to support structured logging
Diffstat (limited to 'src/mongo/db/index')
-rw-r--r--src/mongo/db/index/index_descriptor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/index/index_descriptor.h b/src/mongo/db/index/index_descriptor.h
index 3c3442fb004..b8d61b20564 100644
--- a/src/mongo/db/index/index_descriptor.h
+++ b/src/mongo/db/index/index_descriptor.h
@@ -203,6 +203,10 @@ public:
return _infoObj;
}
+ BSONObj toBSON() const {
+ return _infoObj;
+ }
+
// Both the collection and the catalog must outlive the IndexDescriptor
const Collection* getCollection() const {
return _collection;