Rename hook functions for debug_io_direct to match variable name.
Commit 319bae9a 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
This commit is contained in:
parent
b575a26c66
commit
4f3514f201
@ -3884,7 +3884,7 @@ data_sync_elevel(int elevel)
|
||||
}
|
||||
|
||||
bool
|
||||
check_io_direct(char **newval, void **extra, GucSource source)
|
||||
check_debug_io_direct(char **newval, void **extra, GucSource source)
|
||||
{
|
||||
bool result = true;
|
||||
int flags;
|
||||
@ -3958,7 +3958,7 @@ check_io_direct(char **newval, void **extra, GucSource source)
|
||||
if (!result)
|
||||
return result;
|
||||
|
||||
/* Save the flags in *extra, for use by assign_io_direct */
|
||||
/* Save the flags in *extra, for use by assign_debug_io_direct */
|
||||
*extra = guc_malloc(ERROR, sizeof(int));
|
||||
*((int *) *extra) = flags;
|
||||
|
||||
@ -3966,7 +3966,7 @@ check_io_direct(char **newval, void **extra, GucSource source)
|
||||
}
|
||||
|
||||
extern void
|
||||
assign_io_direct(const char *newval, void *extra)
|
||||
assign_debug_io_direct(const char *newval, void *extra)
|
||||
{
|
||||
int *flags = (int *) extra;
|
||||
|
||||
|
@ -571,7 +571,7 @@ static char *datestyle_string;
|
||||
static char *server_encoding_string;
|
||||
static char *server_version_string;
|
||||
static int server_version_num;
|
||||
static char *io_direct_string;
|
||||
static char *debug_io_direct_string;
|
||||
|
||||
#ifdef HAVE_SYSLOG
|
||||
#define DEFAULT_SYSLOG_FACILITY LOG_LOCAL0
|
||||
@ -4546,9 +4546,9 @@ struct config_string ConfigureNamesString[] =
|
||||
NULL,
|
||||
GUC_LIST_INPUT | GUC_NOT_IN_SAMPLE
|
||||
},
|
||||
&io_direct_string,
|
||||
&debug_io_direct_string,
|
||||
"",
|
||||
check_io_direct, assign_io_direct, NULL
|
||||
check_debug_io_direct, assign_debug_io_direct, NULL
|
||||
},
|
||||
|
||||
/* End-of-list marker */
|
||||
|
@ -49,6 +49,8 @@ extern bool check_cluster_name(char **newval, void **extra, GucSource source);
|
||||
extern const char *show_data_directory_mode(void);
|
||||
extern bool check_datestyle(char **newval, void **extra, GucSource source);
|
||||
extern void assign_datestyle(const char *newval, void *extra);
|
||||
extern bool check_debug_io_direct(char **newval, void **extra, GucSource source);
|
||||
extern void assign_debug_io_direct(const char *newval, void *extra);
|
||||
extern bool check_default_table_access_method(char **newval, void **extra,
|
||||
GucSource source);
|
||||
extern bool check_default_tablespace(char **newval, void **extra,
|
||||
@ -157,7 +159,5 @@ extern bool check_wal_consistency_checking(char **newval, void **extra,
|
||||
GucSource source);
|
||||
extern void assign_wal_consistency_checking(const char *newval, void *extra);
|
||||
extern void assign_xlog_sync_method(int new_sync_method, void *extra);
|
||||
extern bool check_io_direct(char **newval, void **extra, GucSource source);
|
||||
extern void assign_io_direct(const char *newval, void *extra);
|
||||
|
||||
#endif /* GUC_HOOKS_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user