Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cdd8634

Browse files
committed
Fix ERROR message in injection_point.c
This commit fixes an error message that failed to show the correct function and library names when a function cannot be loaded. While on it, adjust the call to load_external_function() so as this ERROR can be reached, by making load_external_function() return NULL rather than fail if a function cannot be found for a given injection point. Thinkos in d86d20f.
1 parent 0eb2328 commit cdd8634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/misc/injection_point.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,11 @@ InjectionPointRun(const char *name)
300300
path, name);
301301

302302
injection_callback = (InjectionPointCallback)
303-
load_external_function(path, entry_by_name->function, true, NULL);
303+
load_external_function(path, entry_by_name->function, false, NULL);
304304

305305
if (injection_callback == NULL)
306306
elog(ERROR, "could not find function \"%s\" in library \"%s\" for injection point \"%s\"",
307-
name, entry_by_name->function, path);
307+
entry_by_name->function, path, name);
308308

309309
/* add it to the local cache when found */
310310
injection_point_cache_add(name, injection_callback);

0 commit comments

Comments
 (0)