8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:03:04 +01:00

A little comment

This commit is contained in:
aafemt 2015-11-11 16:14:39 +00:00
parent 2e7b9d255a
commit 537209b64a
2 changed files with 5 additions and 3 deletions

View File

@ -580,8 +580,10 @@ namespace Jrd {
if (sv->getState() & IStatus::STATE_ERRORS)
return NULL;
to->pag_flags |= Ods::crypted_page;
from->pag_flags |= Ods::crypted_page;
to->pag_flags |= Ods::crypted_page; // Mark page that is going to be written as encrypted
from->pag_flags |= Ods::crypted_page; // Set the mark for page in cache as well
// If page write fail, nothing bad can happen
// it will be encrypted next time is modified
return to;
}
else

View File

@ -211,7 +211,7 @@ const bool pag_crypt_page[pag_max + 1] = {false, false, false,
// pag_flags for any page type
const UCHAR crypted_page = 0x80; // Page encrypted
const UCHAR crypted_page = 0x80; // Page on disk is encrypted (in memory cache it always isn't)
// Basic page header