diff options
Diffstat (limited to 'src/mongo/db/catalog/collection_impl.h')
-rw-r--r-- | src/mongo/db/catalog/collection_impl.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mongo/db/catalog/collection_impl.h b/src/mongo/db/catalog/collection_impl.h index c125f4cfbaf..0594d3c289e 100644 --- a/src/mongo/db/catalog/collection_impl.h +++ b/src/mongo/db/catalog/collection_impl.h @@ -204,18 +204,19 @@ public: bool updateWithDamagesSupported() const final; /** - * Not allowed to modify indexes. * Illegal to call if updateWithDamagesSupported() returns false. * Sets 'args.updatedDoc' to the updated version of the document with damages applied, on * success. - * @return the contents of the updated record. + * Returns the contents of the updated document. */ - StatusWith<RecordData> updateDocumentWithDamages(OperationContext* opCtx, - const RecordId& loc, - const Snapshotted<RecordData>& oldRec, - const char* damageSource, - const mutablebson::DamageVector& damages, - CollectionUpdateArgs* args) const final; + StatusWith<BSONObj> updateDocumentWithDamages(OperationContext* opCtx, + const RecordId& loc, + const Snapshotted<BSONObj>& oldDoc, + const char* damageSource, + const mutablebson::DamageVector& damages, + bool indexesAffected, + OpDebug* opDebug, + CollectionUpdateArgs* args) const final; // ----------- |