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

Commita54fc89

Browse files
Replace GUC_UNIT_MEMORY|GUC_UNIT_TIME with GUC_UNIT.
We used (GUC_UNIT_MEMORY | GUC_UNIT_TIME) instead of GUC_UNIT someplaces but we already define it in guc.h. This commit replaces themwith GUC_UNIT for better consistency with their surrounding code.Author: Japin LiReviewed-by: Richard Guo, Michael Paquier, Masahiko SawadaDiscussion:https://postgr.es/m/MEYP282MB1669EC0FED922F7A151673ACB65AA@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
1 parentc00fbe8 commita54fc89

File tree

1 file changed

+2
-2
lines changed
  • src/backend/utils/misc

1 file changed

+2
-2
lines changed

‎src/backend/utils/misc/guc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2766,7 +2766,7 @@ convert_real_from_base_unit(double base_value, int base_unit,
27662766
constchar*
27672767
get_config_unit_name(intflags)
27682768
{
2769-
switch (flags&(GUC_UNIT_MEMORY |GUC_UNIT_TIME))
2769+
switch (flags&GUC_UNIT)
27702770
{
27712771
case0:
27722772
returnNULL;/* GUC has no units */
@@ -2802,7 +2802,7 @@ get_config_unit_name(int flags)
28022802
return"min";
28032803
default:
28042804
elog(ERROR,"unrecognized GUC units value: %d",
2805-
flags&(GUC_UNIT_MEMORY |GUC_UNIT_TIME));
2805+
flags&GUC_UNIT);
28062806
returnNULL;
28072807
}
28082808
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp