summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/sbe/util/spilling.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/sbe/util/spilling.h')
-rw-r--r--src/mongo/db/exec/sbe/util/spilling.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/exec/sbe/util/spilling.h b/src/mongo/db/exec/sbe/util/spilling.h
index 95f73e2b02e..0a562d7e864 100644
--- a/src/mongo/db/exec/sbe/util/spilling.h
+++ b/src/mongo/db/exec/sbe/util/spilling.h
@@ -55,9 +55,12 @@ boost::optional<value::MaterializedRow> readFromRecordStore(OperationContext* op
RecordStore* rs,
const RecordId& rid);
-/** Inserts or updates a key/value into 'rs'. The 'update' flag controls whether or not an update
+/**
+ * Inserts or updates a key/value into 'rs'. The 'update' flag controls whether or not an update
* will be performed. If a key/value pair is inserted into the 'rs' that already exists and
* 'update' is false, this function will tassert.
+ *
+ * Returns the size of the new record in bytes, including the record id and value portions.
*/
int upsertToRecordStore(OperationContext* opCtx,
RecordStore* rs,
@@ -65,7 +68,6 @@ int upsertToRecordStore(OperationContext* opCtx,
const value::MaterializedRow& val,
const KeyString::TypeBits& typeBits,
bool update);
-
int upsertToRecordStore(OperationContext* opCtx,
RecordStore* rs,
const RecordId& key,