Skip to content

Commit

Permalink
bad refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
max-hoffman committed May 15, 2024
1 parent ffe7e0a commit 51caf2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions go/libraries/doltcore/sqle/writer/prolly_table_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ func (w *prollyTableWriter) Reset(ctx *sql.Context, sess *prollyWriteSession, tb
if err != nil {
return err
}
dbState.SessionCache().CacheWriterState(schKey, schState)
}
} else {
schState, err = getWriterSchemas(ctx, w.tbl, w.tableName.Name)
Expand Down
1 change: 1 addition & 0 deletions go/libraries/doltcore/sqle/writer/prolly_write_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func (s *prollyWriteSession) GetTableWriter(ctx *sql.Context, table doltdb.Table
if err != nil {
return nil, err
}
dbState.SessionCache().CacheWriterState(schKey, schState)
}
} else {
schState, err = getWriterSchemas(ctx, t, table.Name)
Expand Down

0 comments on commit 51caf2a

Please sign in to comment.