Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2332808

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

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
@@ -77,7 +77,6 @@ _bt_restore_page(Page page, char *from, int len)
7777
if (PageAddItem(page,items[i],itemsizes[i],nitems-i,
7878
false, false)==InvalidOffsetNumber)
7979
elog(PANIC,"_bt_restore_page: cannot add item to page");
80-
from+=itemsz;
8180
}
8281
}
8382

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp