Skip to content

Commit

Permalink
chore: isUsersTable -> forceMerge
Browse files Browse the repository at this point in the history
  • Loading branch information
fracasula committed Oct 25, 2023
1 parent 552bc92 commit f942511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions warehouse/integrations/postgres/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (pg *Postgres) loadTable(
txn *sqlmiddleware.Tx,
tableName string,
tableSchemaInUpload model.TableSchema,
isUsersTable bool,
forceMerge bool,
) (*types.LoadTableStats, string, error) {
log := pg.logger.With(
logfield.SourceID, pg.Warehouse.Source.ID,
Expand Down Expand Up @@ -130,7 +130,7 @@ func (pg *Postgres) loadTable(
}

var rowsDeleted int64
if isUsersTable || pg.shouldMerge() {
if forceMerge || pg.shouldMerge() {
log.Infow("deleting from load table")
rowsDeleted, err = pg.deleteFromLoadTable(
ctx, txn, tableName,
Expand Down

0 comments on commit f942511

Please sign in to comment.