Skip to content

Commit 4f3514f

Browse files
peteremacdice
authored andcommitted
Rename hook functions for debug_io_direct to match variable name.
Commit 319bae9 renamed the GUC. Rename the check and assign functions to match, and alphabetize. Back-patch to 16. Author: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/2769341e-fa28-c2ee-3e4b-53fdcaaf2271%40eisentraut.org
1 parent b575a26 commit 4f3514f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/backend/storage/file/fd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3884,7 +3884,7 @@ data_sync_elevel(int elevel)
38843884
}
38853885

38863886
bool
3887-
check_io_direct(char **newval, void **extra, GucSource source)
3887+
check_debug_io_direct(char **newval, void **extra, GucSource source)
38883888
{
38893889
bool result = true;
38903890
int flags;
@@ -3958,15 +3958,15 @@ check_io_direct(char **newval, void **extra, GucSource source)
39583958
if (!result)
39593959
return result;
39603960

3961-
/* Save the flags in *extra, for use by assign_io_direct */
3961+
/* Save the flags in *extra, for use by assign_debug_io_direct */
39623962
*extra = guc_malloc(ERROR, sizeof(int));
39633963
*((int *) *extra) = flags;
39643964

39653965
return result;
39663966
}
39673967

39683968
extern void
3969-
assign_io_direct(const char *newval, void *extra)
3969+
assign_debug_io_direct(const char *newval, void *extra)
39703970
{
39713971
int *flags = (int *) extra;
39723972

src/backend/utils/misc/guc_tables.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ static char *datestyle_string;
571571
static char *server_encoding_string;
572572
static char *server_version_string;
573573
static int server_version_num;
574-
static char *io_direct_string;
574+
static char *debug_io_direct_string;
575575

576576
#ifdef HAVE_SYSLOG
577577
#define DEFAULT_SYSLOG_FACILITY LOG_LOCAL0
@@ -4546,9 +4546,9 @@ struct config_string ConfigureNamesString[] =
45464546
NULL,
45474547
GUC_LIST_INPUT | GUC_NOT_IN_SAMPLE
45484548
},
4549-
&io_direct_string,
4549+
&debug_io_direct_string,
45504550
"",
4551-
check_io_direct, assign_io_direct, NULL
4551+
check_debug_io_direct, assign_debug_io_direct, NULL
45524552
},
45534553

45544554
/* End-of-list marker */

src/include/utils/guc_hooks.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ extern bool check_cluster_name(char **newval, void **extra, GucSource source);
4949
extern const char *show_data_directory_mode(void);
5050
extern bool check_datestyle(char **newval, void **extra, GucSource source);
5151
extern void assign_datestyle(const char *newval, void *extra);
52+
extern bool check_debug_io_direct(char **newval, void **extra, GucSource source);
53+
extern void assign_debug_io_direct(const char *newval, void *extra);
5254
extern bool check_default_table_access_method(char **newval, void **extra,
5355
GucSource source);
5456
extern bool check_default_tablespace(char **newval, void **extra,
@@ -157,7 +159,5 @@ extern bool check_wal_consistency_checking(char **newval, void **extra,
157159
GucSource source);
158160
extern void assign_wal_consistency_checking(const char *newval, void *extra);
159161
extern void assign_xlog_sync_method(int new_sync_method, void *extra);
160-
extern bool check_io_direct(char **newval, void **extra, GucSource source);
161-
extern void assign_io_direct(const char *newval, void *extra);
162162

163163
#endif /* GUC_HOOKS_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy