Skip to content

Commit f4b3ab5

Browse files
committed
Remove dead assignment to local variable.
This should have been removed in commit 7e30c18, which split the loop into two. Only the first loop uses the 'from' variable; updating it in the second loop is bogus. It was never read after the first loop, so this was harmless and surely optimized away by the compiler, but let's be tidy. Backpatch to all supported versions. Author: Ranier Vilela Discussion: https://www.postgresql.org/message-id/CAEudQAoWq%2BAL3BnELHu7gms2GN07k-np6yLbukGaxJ1vY-zeiQ%40mail.gmail.com
1 parent 6bd9ae1 commit f4b3ab5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/access/nbtree/nbtxlog.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ _bt_restore_page(Page page, char *from, int len)
7575
if (PageAddItem(page, items[i], itemsizes[i], nitems - i,
7676
false, false) == InvalidOffsetNumber)
7777
elog(PANIC, "_bt_restore_page: cannot add item to page");
78-
from += itemsz;
7978
}
8079
}
8180

0 commit comments

Comments
 (0)