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

Commit8cd61d2

Browse files
committed
Avoid unnecessary MemSet call
The variable in question was changed from a struct to a pointer sometime ago (77947c5). Using MemSet to zero it still works but isobviously unidiomatic and confusing, so change it to a straightassignment.Author: Ranier Vilela <ranier.vf@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/CAEudQApCeq4JjW1BdnwU=m=-DvG5WyUik0Yfn3p6UNphiHjj+w@mail.gmail.com
1 parentd31d309 commit8cd61d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/cache/relcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6258,7 +6258,7 @@ load_relcache_init_file(bool shared)
62586258
rel->rd_firstRelfilenodeSubid=InvalidSubTransactionId;
62596259
rel->rd_droppedSubid=InvalidSubTransactionId;
62606260
rel->rd_amcache=NULL;
6261-
MemSet(&rel->pgstat_info,0,sizeof(rel->pgstat_info));
6261+
rel->pgstat_info=NULL;
62626262

62636263
/*
62646264
* Recompute lock and physical addressing info. This is needed in

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp