Track extent structure serial number (esn) in extent_t.

This enables stable sorting of extent_t structures.
This commit is contained in:
Jason Evans
2017-04-16 21:51:26 -07:00
parent 69aa552809
commit 76b35f4b2f
7 changed files with 121 additions and 48 deletions

View File

@@ -154,10 +154,10 @@ TEST_BEGIN(test_base_hooks_not_null) {
* that the first block's remaining space is considered for subsequent
* allocation.
*/
assert_zu_ge(extent_size_get(&base->blocks->extent), QUANTUM,
assert_zu_ge(extent_bsize_get(&base->blocks->extent), QUANTUM,
"Remainder insufficient for test");
/* Use up all but one quantum of block. */
while (extent_size_get(&base->blocks->extent) > QUANTUM) {
while (extent_bsize_get(&base->blocks->extent) > QUANTUM) {
p = base_alloc(tsdn, base, QUANTUM, QUANTUM);
assert_ptr_not_null(p, "Unexpected base_alloc() failure");
}