Skip to content

Commit 155c814

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 13e2665 commit 155c814

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
@@ -3886,7 +3886,7 @@ data_sync_elevel(int elevel)
38863886
}
38873887

38883888
bool
3889-
check_io_direct(char **newval, void **extra, GucSource source)
3889+
check_debug_io_direct(char **newval, void **extra, GucSource source)
38903890
{
38913891
bool result = true;
38923892
int flags;
@@ -3960,15 +3960,15 @@ check_io_direct(char **newval, void **extra, GucSource source)
39603960
if (!result)
39613961
return result;
39623962

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

39673967
return result;
39683968
}
39693969

39703970
extern void
3971-
assign_io_direct(const char *newval, void *extra)
3971+
assign_debug_io_direct(const char *newval, void *extra)
39723972
{
39733973
int *flags = (int *) extra;
39743974

src/backend/utils/misc/guc_tables.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ static char *datestyle_string;
563563
static char *server_encoding_string;
564564
static char *server_version_string;
565565
static int server_version_num;
566-
static char *io_direct_string;
566+
static char *debug_io_direct_string;
567567

568568
#ifdef HAVE_SYSLOG
569569
#define DEFAULT_SYSLOG_FACILITY LOG_LOCAL0
@@ -4544,9 +4544,9 @@ struct config_string ConfigureNamesString[] =
45444544
NULL,
45454545
GUC_LIST_INPUT | GUC_NOT_IN_SAMPLE
45464546
},
4547-
&io_direct_string,
4547+
&debug_io_direct_string,
45484548
"",
4549-
check_io_direct, assign_io_direct, NULL
4549+
check_debug_io_direct, assign_debug_io_direct, NULL
45504550
},
45514551

45524552
/* 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