git: sbin/hammer: Fix wrong next element boundary test
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Thu Sep 24 07:46:36 PDT 2015
commit 798cfa0632d02940cebaf994d9e3289121210e89
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(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/798cfa0632d02940cebaf994d9e3289121210e89
--
DragonFly BSD source repository
More information about the Commits
mailing list