diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2021-02-22 19:05:35 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-23 00:41:56 +0000 |
commit | 3274c2a3d916cfc3e73c9020660fe4d0fb45ebf2 (patch) | |
tree | ac0ae753a5295a555a599053525eee9cab5d47a3 /src/mongo | |
parent | 137bd47d9138fe9bbb0e1fc81dfbbce2cfd35a96 (diff) | |
download | mongo-3274c2a3d916cfc3e73c9020660fe4d0fb45ebf2.tar.gz |
SERVER-54706 Fix listIndexes with string-valued weight
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/create_indexes.idl | 3 | ||||
-rw-r--r-- | src/mongo/db/list_indexes.idl | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/create_indexes.idl b/src/mongo/db/create_indexes.idl index 300e65b31ca..139a4270c0d 100644 --- a/src/mongo/db/create_indexes.idl +++ b/src/mongo/db/create_indexes.idl @@ -106,7 +106,8 @@ structs: optional: true unstable: true weights: - type: object_owned + type: + variant: [string, object_owned] optional: true default_language: type: string diff --git a/src/mongo/db/list_indexes.idl b/src/mongo/db/list_indexes.idl index e53c8947da5..3efc9e02f91 100644 --- a/src/mongo/db/list_indexes.idl +++ b/src/mongo/db/list_indexes.idl @@ -79,7 +79,8 @@ structs: type: object_owned optional: true weights: - type: object_owned + type: + variant: [string, object_owned] optional: true default_language: type: string |