Skip to content

Commit

Permalink
Add Support to Upsert/Insert Ignore on PDB
Browse files Browse the repository at this point in the history
- Fix method name.
  • Loading branch information
victorcmg-fdz committed May 26, 2023
1 parent 67c8a01 commit 387e883
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ public void flush() {
* Flushes the pending batches ignoring duplicate entries.
*/
public void flushUpsert() {
logger.trace("Start batch flushing ignoring duplicated entries.");
flush((this::processBatchIgnoring));
logger.trace("Start batch flushing upserting duplicated entries.");
flush((this::processBatchUpsert));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected void processBatch(final DatabaseEngine de, final List<BatchEntry> batc
* @param batchEntries The list of batch entries to be flushed.
* @throws DatabaseEngineException If the operation failed.
*/
protected void processBatchIgnoring(final DatabaseEngine de, final List<BatchEntry> batchEntries) throws DatabaseEngineException {
protected void processBatchUpsert(final DatabaseEngine de, final List<BatchEntry> batchEntries) throws DatabaseEngineException {
/*
Begin transaction before the addBatch calls, in order to force the retry of the connection if it was lost during
or since the last batch. Otherwise, the addBatch call that uses a prepared statement will fail.
Expand Down

0 comments on commit 387e883

Please sign in to comment.