Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcdd8634

Browse files
committed
Fix ERROR message in injection_point.c
This commit fixes an error message that failed to show the correctfunction and library names when a function cannot be loaded.While on it, adjust the call to load_external_function() so as thisERROR can be reached, by making load_external_function() return NULLrather than fail if a function cannot be found for a given injectionpoint.Thinkos ind86d20f.
1 parent0eb2328 commitcdd8634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/misc/injection_point.c

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp