git: sbin/hammer: Fix wrong next element boundary test
tkusumi at crater.dragonflybsd.org
Thu Sep 24 07:46:36 PDT 2015
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Mon Sep 21 16:25:49 2015 +0900
sbin/hammer: Fix wrong next element boundary test
When elm is the current node element to be tested by
test_btree_out_of_range() by hammer show,
1. it's out of range if ((elm + 1) == search),
if all optional search directives are used.
2. it may not be out or range if ((elm + 1) == search),
if not all optional search directives are used.
Unused search directives are wildcard, so elm could still
have a subtree with records that meet the search condition
in above case 2.
This existed before test_btree_out_of_range() was added by
the previous commit, and because it's a different topic,
this commit is kept apart from the previous one without
squashed into one.
Summary of changes:
sbin/hammer/cmd_show.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
DragonFly BSD source repository
More information about the Commits