mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-11 02:59:34 -06:00
comment for clarity
This commit is contained in:
@@ -312,6 +312,10 @@ func (tea *tableEditAccumulatorImpl) Rollback(ctx context.Context) error {
|
||||
|
||||
// MaterializeEdits applies the in memory edits to the row data and returns types.Map
|
||||
func (tea *tableEditAccumulatorImpl) MaterializeEdits(ctx context.Context, nbf *types.NomsBinFormat) (m types.Map, err error) {
|
||||
// In the case where the current edits become so large that they need to be flushed to disk, the committed edits will also be flushed
|
||||
// to disk first before the uncommitted edits. When commit gets run now the uncommitted edits will then become committed edits,
|
||||
// but they need to be applied after the flushed edits. So in the loop below where we build the list of EditProviders the newly
|
||||
// committed edits must be applied last.
|
||||
err = tea.Commit(ctx, nbf)
|
||||
if err != nil {
|
||||
return types.EmptyMap, err
|
||||
|
||||
Reference in New Issue
Block a user