summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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