File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 and doing this for each subsequent page. Dictionary 'broken_pages_map' is used to store LIST of pages
1717 for each encountered page type;
1818 * close connection;
19- * open test DB file in binary mode for reading and writing, and:
19+ * open test DB file in binary mode for writing and:
2020 ** store previous content of .fdb in variable 'raw_db_content' (for further restore);
2121 ** for every page types that are stored in broken_pages_map.keys():
22- **** get list of pages of that type which must be broken;
23- **** if page_type is POINTER_PAGE or IDX_ROOT_PAGE - do nothing (we can get problems if these pages are broken);
24- **** otherwise put 'garbage bytes' in each of these pages;
22+ *** get list of pages of that type which must be broken;
23+ *** if page_type is POINTER_PAGE or IDX_ROOT_PAGE - do nothing (we can get problems if these pages are broken);
24+ *** otherwise put 'garbage bytes' in each of these pages (multiple pages for each type will be damaged) ;
2525 * close DB file
2626 * ENCRYPT database, see call of func 'run_encr_decr';
2727 * run 'gstat -e' and check its output for presense of several expected patterns:
You can’t perform that action at this time.
0 commit comments