mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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:
committed by
Thomas Munro
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;
|
||||
|
||||
|
Reference in New Issue
Block a user