From f67a91df05719630d7893140dbb3a5edd45a642b Mon Sep 17 00:00:00 2001 From: Gregory Noma Date: Wed, 5 Aug 2020 20:13:29 -0400 Subject: SERVER-49408 Enable resuming index builds from the bulk load phase --- src/mongo/db/resumable_index_builds.idl | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'src/mongo/db/resumable_index_builds.idl') 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 -- cgit v1.2.1