Skip to content

Commit 5476a41

Browse files
author
Josh Kupershmidt
committed
Merge branch 'Fix-repack_apply-count-bug' of https://github.com/decibel/pg_repack into decibel-Fix-repack_apply-count-bug
2 parents f564292 + 0e24283 commit 5476a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/repack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ repack_apply(PG_FUNCTION_ARGS)
242242
bool nulls[3]; /* id, pk, row */
243243

244244
/* peek tuple in log */
245-
if (count == 0)
245+
if (count <= 0)
246246
values_peek[0] = Int32GetDatum(DEFAULT_PEEK_COUNT);
247247
else
248248
values_peek[0] = Int32GetDatum(Min(count - n, DEFAULT_PEEK_COUNT));

0 commit comments

Comments
 (0)