Skip to content

Commit 4df5f6c

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 92340ba commit 4df5f6c

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
@@ -74,7 +74,6 @@ _bt_restore_page(Page page, char *from, int len)
7474
if (PageAddItem(page, items[i], itemsizes[i], nitems - i,
7575
false, false) == InvalidOffsetNumber)
7676
elog(PANIC, "_bt_restore_page: cannot add item to page");
77-
from += itemsz;
7877
}
7978
}
8079

0 commit comments

Comments
 (0)