8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:00:38 +01:00

1. Fixed ignored IO-errors (i.e. incomplete backups) on non-windows platforms.

2. Fixed CORE-1237 - GBAK does not create backup in service_mgr mode if there is no space on disk, no error reported.
This commit is contained in:
alexpeshkoff 2007-05-08 15:16:08 +00:00
parent 5e076ef28b
commit 918fe445d9

View File

@ -529,7 +529,7 @@ DESC MVOL_open(const char * name, ULONG mode, ULONG create)
UCHAR MVOL_write(UCHAR c, int *io_cnt, UCHAR ** io_ptr)
{
UCHAR *ptr;
ULONG left, cnt;
SLONG left, cnt;
BurpGlobals* tdgbl = BurpGlobals::getSpecific();
@ -643,6 +643,13 @@ UCHAR MVOL_write(UCHAR c, int *io_cnt, UCHAR ** io_ptr)
cnt = 0;
continue;
}
if (tdgbl->gbl_sw_service_gbak)
{
BURP_error(270, true);
// msg 270 free disk space exhausted
}
// Note: there is an assumption here, that if header data is being
// written, it is really being rewritten, so at least all the
// header data will be written