From 155c81463c26d908a1579b6d90e7b39b6f61df8b Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 22 Aug 2023 14:12:45 +0200 Subject: 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 Discussion: https://postgr.es/m/2769341e-fa28-c2ee-3e4b-53fdcaaf2271%40eisentraut.org --- src/backend/storage/file/fd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/storage/file/fd.c') diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 3c2a2fbef73..16b3e8f9058 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -3886,7 +3886,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; @@ -3960,7 +3960,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; @@ -3968,7 +3968,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; -- cgit v1.2.3