mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:43:02 +01:00
Misc.
This commit is contained in:
parent
0fc893a4e1
commit
254959f099
@ -156,8 +156,8 @@ See also README.trace_services
|
||||
(Alex Peshkov, peshkoff@mail.ru, 2011-2012)
|
||||
|
||||
This way of doing backups is specially efficient when one needs to perform
|
||||
backup/restore operation for database, located on ther server accessed using
|
||||
internet, due to serious performance instrease.
|
||||
backup/restore operation for database, located on a server accessed using
|
||||
internet, due to serious performance increase.
|
||||
|
||||
The simplest way to use this feature is fbsvcmgr. To backup database run
|
||||
approximately the following:
|
||||
|
@ -117,7 +117,7 @@ FB_UINT64 MVOL_fini_read()
|
||||
|
||||
for (burp_fil* file = tdgbl->gbl_sw_backup_files; file; file = file->fil_next)
|
||||
{
|
||||
if (file->fil_fd == tdgbl->file_desc)
|
||||
if (file->fil_fd == tdgbl->file_desc)
|
||||
{
|
||||
file->fil_fd = INVALID_HANDLE_VALUE;
|
||||
}
|
||||
|
@ -65,10 +65,10 @@ static const int mask = 0666;
|
||||
static DESC open_platf(const char* name, int writeFlag)
|
||||
{
|
||||
#ifdef WIN_NT
|
||||
return CreateFile(name, writeFlag ? GENERIC_WRITE : GENERIC_READ, 0, NULL,
|
||||
writeFlag ? CREATE_ALWAYS : OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
|
||||
return CreateFile(name, (writeFlag ? GENERIC_WRITE : GENERIC_READ), 0, NULL,
|
||||
(writeFlag ? CREATE_ALWAYS : OPEN_EXISTING), FILE_ATTRIBUTE_NORMAL, 0);
|
||||
#else
|
||||
return open(name, writeFlag ? mode_write : mode_read, mask);
|
||||
return open(name, (writeFlag ? mode_write : mode_read), mask);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user