mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-06 12:20:15 +01:00
report stat() error in trigger file check
Permissions might prevent the existence of the trigger file from being checked. Per report from Andres Freund
This commit is contained in:
parent
c1275cf741
commit
83defef8c7
|
|
@ -11102,6 +11102,12 @@ CheckForStandbyTrigger(void)
|
|||
fast_promote = true;
|
||||
return true;
|
||||
}
|
||||
else if (errno != ENOENT)
|
||||
ereport(ERROR,
|
||||
(errcode_for_file_access(),
|
||||
errmsg("could not stat trigger file \"%s\": %m",
|
||||
TriggerFile)));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user