summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_catalog.h
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2018-11-12 13:35:36 -0500
committerLouis Williams <louis.williams@mongodb.com>2018-11-29 13:09:15 -0500
commitca1cccb8a18be76c584f587e04b14512e59d8424 (patch)
tree455c08f9ad231f45fc64e8a3b2a5ec2d4048cc38 /src/mongo/db/catalog/index_catalog.h
parentb5308fc30a1ec7405ccec6dcc4213cf5fb167a4e (diff)
downloadmongo-ca1cccb8a18be76c584f587e04b14512e59d8424.tar.gz
SERVER-38027 SERVER-37268 Partially enable hybrid index builds for background, non-unique indexes. Change background index builds to use the bulk builder and external sorter
Diffstat (limited to 'src/mongo/db/catalog/index_catalog.h')
-rw-r--r--src/mongo/db/catalog/index_catalog.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/index_catalog.h b/src/mongo/db/catalog/index_catalog.h
index 386a344d65c..4e8f70d6d66 100644
--- a/src/mongo/db/catalog/index_catalog.h
+++ b/src/mongo/db/catalog/index_catalog.h
@@ -370,6 +370,19 @@ public:
int64_t* const keysInsertedOut) = 0;
/**
+ * Both 'keysInsertedOut' and 'keysDeletedOut' are required and will be set to the number of
+ * index keys inserted and deleted by this operation, respectively.
+ *
+ * This method may throw.
+ */
+ virtual Status updateRecord(OperationContext* const opCtx,
+ const BSONObj& oldDoc,
+ const BSONObj& newDoc,
+ const RecordId& recordId,
+ int64_t* const keysInsertedOut,
+ int64_t* const keysDeletedOut) = 0;
+
+ /**
* When 'keysDeletedOut' is not null, it will be set to the number of index keys removed by
* this operation.
*/