8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:00:38 +01:00
This commit is contained in:
Adriano dos Santos Fernandes 2017-01-30 22:29:55 -02:00
parent ae5d1b20ce
commit d23c7c1156
3 changed files with 5 additions and 2 deletions

View File

@ -1436,7 +1436,7 @@ static SecurityClass::flags_t get_sys_privileges(thread_db* tdbb)
return 0;
SecurityClass::flags_t flags = 0;
if (attachment->locksmith(tdbb, ACCESS_ANY_OBJECT_IN_DATABASE))
flags |= SCL_ACCESS_ANY;
else if (attachment->locksmith(tdbb, SELECT_ANY_OBJECT_IN_DATABASE))

View File

@ -84,7 +84,7 @@ const SecurityClass::flags_t SCL_usage = 2048; // USAGE access
const SecurityClass::flags_t SCL_create = 4096;
const SecurityClass::flags_t SCL_SELECT_ANY = SCL_select | SCL_references;
const SecurityClass::flags_t SCL_ACCESS_ANY = SCL_insert | SCL_update | SCL_delete |
const SecurityClass::flags_t SCL_ACCESS_ANY = SCL_insert | SCL_update | SCL_delete |
SCL_execute | SCL_usage | SCL_SELECT_ANY;
const SecurityClass::flags_t SCL_MODIFY_ANY = SCL_create | SCL_alter | SCL_control | SCL_drop;

View File

@ -1830,6 +1830,7 @@ Validation::RTN Validation::walk_data_page(jrd_rel* relation, ULONG page_number,
CCH_MARK(vdr_tdbb, &window);
marked = true;
}
header->rhd_flags |= rhd_damaged;
vdr_fixed++;
}
@ -1844,6 +1845,7 @@ Validation::RTN Validation::walk_data_page(jrd_rel* relation, ULONG page_number,
if (primary_versions && (dp_flags & dpg_secondary))
{
corrupt(VAL_DATA_PAGE_SEC_PRI, relation, page_number, sequence);
if (vdr_flags & VDR_update)
{
if (!marked)
@ -1851,6 +1853,7 @@ Validation::RTN Validation::walk_data_page(jrd_rel* relation, ULONG page_number,
CCH_MARK(vdr_tdbb, &window);
marked = true;
}
page->dpg_header.pag_flags &= ~dpg_secondary;
pp_bits &= ~ppg_dp_secondary;
vdr_fixed++;