Skip to content

Commit

Permalink
Reduce verify intensity on debug builds
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
  • Loading branch information
pcd1193182 committed Oct 8, 2019
1 parent b2f3759 commit ade2936
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions module/zfs/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ kmem_cache_t *zfs_btree_leaf_cache;
* Intensity 3: Verify that the total number of elements in the tree matches the
* sum of the number of elements in each node. Also verifies that each node's
* count obeys the invariants (less than or equal to maximum value, greater than
* or equal to half the maximum).
* or equal to half the maximum minus one).
* Intensity 4: Verify that each element compares less than the element
* immediately after it and greater than the one immediately before it using the
* comparator function. For core nodes, also checks that each element is greater
Expand All @@ -53,11 +53,7 @@ kmem_cache_t *zfs_btree_leaf_cache;
* (while the asymptotic complexity of the other steps is the same, the
* importance of the constant factors cannot be denied).
*/
#ifdef ZFS_DEBUG
int zfs_btree_verify_intensity = 5;
#else
int zfs_btree_verify_intensity = 0;
#endif

#ifdef _ILP32
#define BTREE_POISON 0xabadb10c
Expand Down

0 comments on commit ade2936

Please sign in to comment.