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…
x
Reference in New Issue
Block a user