Skip to content

Commit

Permalink
Fixed bug CORE-1577 : Forced Writes setting is not applied to the sec…
Browse files Browse the repository at this point in the history
…ondary database files
  • Loading branch information
hvlad committed Nov 8, 2007
1 parent f7be652 commit 9f569c1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/jrd/pag.cpp
Expand Up @@ -1280,9 +1280,11 @@ void PAG_header(bool info)
(useFSCache ? 0 : DBB_no_fs_cache);

PageSpace* pageSpace = dbb->dbb_page_manager.findPageSpace(DB_PAGE_SPACE);
PIO_force_write(pageSpace->file,
(dbb->dbb_flags & DBB_force_write) && !(header->hdr_flags & hdr_read_only),
dbb->dbb_flags & DBB_no_fs_cache);
for (jrd_file* file = pageSpace->file; file; file = file->fil_next) {
PIO_force_write(file,
(dbb->dbb_flags & DBB_force_write) && !(header->hdr_flags & hdr_read_only),
dbb->dbb_flags & DBB_no_fs_cache);
}
}

if (header->hdr_flags & hdr_no_reserve)
Expand Down Expand Up @@ -1783,8 +1785,7 @@ void PAG_set_force_write(Database* dbb, SSHORT flag)

CCH_RELEASE(tdbb, &window);

PageSpace* pageSpace =
dbb->dbb_page_manager.findPageSpace(DB_PAGE_SPACE);
PageSpace* pageSpace = dbb->dbb_page_manager.findPageSpace(DB_PAGE_SPACE);
for (jrd_file* file = pageSpace->file; file; file = file->fil_next) {
PIO_force_write(file, flag != 0,
dbb->dbb_flags & DBB_no_fs_cache);
Expand Down

0 comments on commit 9f569c1

Please sign in to comment.