summaryrefslogtreecommitdiff
path: root/src/mongo/db/resumable_index_builds.idl
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2020-08-05 20:13:29 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-06 00:41:40 +0000
commitf67a91df05719630d7893140dbb3a5edd45a642b (patch)
tree3f38cf47461e3d85f881a19e5d798d9584bb951d /src/mongo/db/resumable_index_builds.idl
parent84ae2755904df75ea8ab79e0595227b04bf02251 (diff)
downloadmongo-f67a91df05719630d7893140dbb3a5edd45a642b.tar.gz
SERVER-49408 Enable resuming index builds from the bulk load phase
Diffstat (limited to 'src/mongo/db/resumable_index_builds.idl')
-rw-r--r--src/mongo/db/resumable_index_builds.idl24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/mongo/db/resumable_index_builds.idl b/src/mongo/db/resumable_index_builds.idl
index 3e4fdeff29d..bbe2f80dcd4 100644
--- a/src/mongo/db/resumable_index_builds.idl
+++ b/src/mongo/db/resumable_index_builds.idl
@@ -37,6 +37,7 @@ global:
imports:
- "mongo/idl/basic_types.idl"
+ - "mongo/db/sorter/sorter.idl"
enums:
IndexBuildPhase:
@@ -49,21 +50,6 @@ enums:
kDrainWrites: "drain writes"
structs:
- SorterRange:
- description: "The range of data that was sorted and spilled to disk"
- strict: true
- fields:
- startOffset:
- description: "Tracks where in the file we started writing this data range"
- type: long
- endOffset:
- description: "Tracks where in the file we finished writing this data range"
- type: long
- checksum:
- description: "Keeps track of the hash of all data objects spilled to disk"
- type: long
- validator: { gte: 0 }
-
IndexSorterInfo:
description: "The information to resume the sorter for an index build"
strict: true
@@ -82,14 +68,14 @@ structs:
for this index build"
type: string
optional: true
- tempDir:
- description: "The directory into which we place a file when spilling data to disk"
- type: string
- optional: true
fileName:
description: "The name of the file that sorted data is written to"
type: string
optional: true
+ numKeys:
+ description: "The number of keys that were that were already sorted and spilled to disk"
+ type: long
+ optional: true
ranges:
description: "All ranges of data that were already sorted and spilled to disk"
type: array<SorterRange>