!4921 增加审计日志磁盘满告警日志

Merge pull request !4921 from 张悦萌/audit_log
This commit is contained in:
opengauss_bot
2024-03-06 08:20:57 +00:00
committed by Gitee

View File

@ -1103,6 +1103,7 @@ retry1:
* there is not space to write. * there is not space to write.
*/ */
if (errno == ENOSPC) { if (errno == ENOSPC) {
ereport(WARNING, (errmsg("No free space left on audit disk.")));
pg_usleep(1000000); pg_usleep(1000000);
goto retry1; goto retry1;
} }
@ -1137,6 +1138,7 @@ retry:
* there is not space to write. * there is not space to write.
*/ */
if (errno == ENOSPC) { if (errno == ENOSPC) {
ereport(WARNING, (errmsg("No free space left on audit disk.")));
pg_usleep(1000000); pg_usleep(1000000);
goto retry; goto retry;
} }