Skip to content

Commit bc3dc53

Browse files
authored
no need to check for partitions when updating them (#2466)
1 parent ed4c032 commit bc3dc53

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/repository/v1/task.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -292,16 +292,6 @@ func (r *TaskRepositoryImpl) EnsureTablePartitionsExist(ctx context.Context) (bo
292292
}
293293

294294
func (r *TaskRepositoryImpl) UpdateTablePartitions(ctx context.Context) error {
295-
exists, err := r.EnsureTablePartitionsExist(ctx)
296-
if err != nil {
297-
return fmt.Errorf("failed to check if table partitions exist: %w", err)
298-
}
299-
300-
if exists {
301-
r.l.Debug().Msg("table partitions already exist, skipping")
302-
return nil
303-
}
304-
305295
const PARTITION_LOCK_OFFSET = 9000000000000000000
306296
const partitionLockKey = PARTITION_LOCK_OFFSET + 1
307297

0 commit comments

Comments
 (0)