Do not copy the root page if there is only one root page
Dependencies
- [2]
E4MD6T3LProofreading and commenting of this crate (massive bug fixes included) - [3]
W2MIZD5BSingle file databases + CRC for the root pages (checking the other pages makes everything very slow) - [4]
OP6SVMODResetting history
Change contents
- replacement in sanakirja/src/environment/muttxn.rs at line 185
std::ptr::copy_nonoverlapping(page_ptr.add(8), next_page_ptr.add(8), PAGE_SIZE - 8);// Iff n_roots == 1 when creating the environment, the two pointers are equal.if page_ptr != next_page_ptr {std::ptr::copy_nonoverlapping(page_ptr.add(8), next_page_ptr.add(8), PAGE_SIZE - 8);}