summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Saltz <matthew.saltz@mongodb.com>2019-10-23 18:19:58 +0000
committerevergreen <evergreen@mongodb.com>2019-10-23 18:19:58 +0000
commit9418c83c796ae1e2704116558b8544cbe386a243 (patch)
tree62bc7efe9563e9942fcc9f301cc1a1c0fb8634fa
parent19b9e3fc31506fd6d8e2f629e5d3f3d0dbf80918 (diff)
downloadmongo-9418c83c796ae1e2704116558b8544cbe386a243.tar.gz
SERVER-44166 Update range deletion task IDL to contain collection UUID and pending flag
-rw-r--r--src/mongo/db/s/SConscript2
-rw-r--r--src/mongo/db/s/range_deletion_task.idl (renamed from src/mongo/db/s/deletion_task.idl)13
2 files changed, 11 insertions, 4 deletions
diff --git a/src/mongo/db/s/SConscript b/src/mongo/db/s/SConscript
index f3de85b8565..772c8750c89 100644
--- a/src/mongo/db/s/SConscript
+++ b/src/mongo/db/s/SConscript
@@ -71,7 +71,7 @@ env.Library(
'split_chunk.cpp',
'split_vector.cpp',
env.Idlc('sharding_runtime_d_params.idl')[0],
- env.Idlc('deletion_task.idl')[0],
+ env.Idlc('range_deletion_task.idl')[0],
],
LIBDEPS=[
diff --git a/src/mongo/db/s/deletion_task.idl b/src/mongo/db/s/range_deletion_task.idl
index bceca9d6f76..df008bedf34 100644
--- a/src/mongo/db/s/deletion_task.idl
+++ b/src/mongo/db/s/range_deletion_task.idl
@@ -26,8 +26,8 @@
# it in the license file.
#
-# This file defines the IDL interface for the DeletionTask class which is used to serialize chunk
-# ranges for RangeDeletionService
+# This file defines the format of documents stored in config.rangeDeletions. Each document
+# represents a chunk range to be deleted by the CollectionRangeDeleter.
global:
cpp_namespace: "mongo"
@@ -46,15 +46,22 @@ types:
deserializer: "mongo::ChunkRange::fromBSONThrowing"
structs:
- deletionTask:
+ rangeDeletionTask:
description: "Represents a chunk range to be deleted by the range deleter."
strict: false
fields:
nss:
type: namespacestring
description: "The namespace of the collection that the chunk belongs to."
+ collectionUuid:
+ type: namespacestring
+ description: "The UUID of the collection that the chunk belongs to."
range:
type: chunkRangeType
description: "The range to be deleted. Needs to be optional since ChunkRange
doesn't have a default constructor."
optional: true
+ pending:
+ type: bool
+ description: "Flag that is present if the range is not yet ready for deletion"
+ optional: true