|
Zero
0.1.0
|
#include <xct.h>
Public Member Functions | |
| inquery_verify_context_t () | |
Public Attributes | |
| int32_t | pages_checked |
| std::set< PageID > | pids_inconsistent |
| PageID | next_pid |
| int16_t | next_level |
| w_keystr_t | next_low_key |
| w_keystr_t | next_high_key |
Results of in-query (not batch) BTree verification. In-query verification is on when xct_t::set_inquery_verify(true). Use In-query verification as follows:
xct()->set_inquery_verify(true); // verification mode on
xct()->set_inquery_verify_keyorder(true); // detailed check for sortedness/uniqueness
xct()->set_inquery_verify_space(true); // detailed check for space overlap
ss_m::create_assoc(...);
ss_m::find_assoc(...);
...
const inquery_verify_context_t &result = xct()->inquery_verify_context();
cout << "checked " << result.pages_checked << "pages"
<< " and found " << result.pids_inconsistent.size() << " inconsistencies.";
if (result.pids_inconsistent.size() > 0) {
// output IDs of inconsistent pages etc..
}
}
|
inline |
| w_keystr_t inquery_verify_context_t::next_high_key |
expected next fence-high key.
| int16_t inquery_verify_context_t::next_level |
expected next page level. -1 means "don't check" (only for root page).
| w_keystr_t inquery_verify_context_t::next_low_key |
expected next fence-low key.
| PageID inquery_verify_context_t::next_pid |
expected next page id.
| int32_t inquery_verify_context_t::pages_checked |
total count of pages checked (includes checks of same page).
| std::set<PageID> inquery_verify_context_t::pids_inconsistent |
ID of pages that had some inconsistency.
1.8.12