Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Sep 24, 2024
1 parent a601ba8 commit f7e093b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/restore_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func doRestoreAgent() error {

currentPipe = fmt.Sprintf("%s_%d_%d", *pipeFile, tableOid, batchNum)

if batchNum < batches-1 {
if batchNum < oidWithBatch.batch-1 {
nextOid := tableOid
nextBatchNum := batchNum + 1
nextPipeToCreate := fmt.Sprintf("%s_%d_%d", *pipeFile, nextOid, nextBatchNum)
Expand Down Expand Up @@ -301,7 +301,7 @@ func doRestoreAgent() error {
logWarn(fmt.Sprintf("Oid %d, Batch %d: Skip file discovered, skipping this relation.", tableOid, batchNum))
err = nil
skip = true
if batchNum < batches-1 {
if batchNum < oidWithBatch.batch-1 {
batchToDelete := batchNum + 1
closeAndDeletePipe(tableOid, batchToDelete)
}
Expand Down

0 comments on commit f7e093b

Please sign in to comment.