diff options
author | Benety Goh <benety@mongodb.com> | 2020-03-02 17:57:19 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-03 00:03:47 +0000 |
commit | 7a7ff689ca4ab64caab4c96e4947c30257d61b89 (patch) | |
tree | 8b0a974d356b1c097f87162b0780b75fdc6a7298 /src/mongo/db/index | |
parent | aeb3b2ac2f9394ba10a4e0b93461a5f97d866f14 (diff) | |
download | mongo-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.h | 4 |
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; |