diff options
author | Yu Jin Kang Park <yujin.kang@mongodb.com> | 2022-09-02 13:17:57 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-08 16:49:10 +0000 |
commit | 17dc0a48233b4c7c6e95b43236f0fc8dba2d3b4e (patch) | |
tree | b4cade7072a3b633acd8540139981f33a76341e6 /src/mongo/db/global_index.h | |
parent | 000691a65de1ba61fca5bf81316cdd146fbd20e4 (diff) | |
download | mongo-17dc0a48233b4c7c6e95b43236f0fc8dba2d3b4e.tar.gz |
SERVER-67893 Add _shardsvrDropGlobalIndex command
Diffstat (limited to 'src/mongo/db/global_index.h')
-rw-r--r-- | src/mongo/db/global_index.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/global_index.h b/src/mongo/db/global_index.h index 82fbec7187d..dcfa1a29871 100644 --- a/src/mongo/db/global_index.h +++ b/src/mongo/db/global_index.h @@ -45,6 +45,12 @@ namespace mongo::global_index { void createContainer(OperationContext* opCtx, const UUID& indexUUID); /** + * Drops the internal collection acting as the global index container with the given UUID on the + * shard. Replicates as a 'dropGlobalIndex' command. + */ +void dropContainer(OperationContext* opCtx, const UUID& indexUUID); + +/** * Inserts a key into the global index container identified by UUID. Replicates as an 'xi' command. * - 'key' is the unique index key. * - 'docKey' is the document key of the index entry. |