From 98cd4005dc806373fc05315eba5dedad0fdc33ac Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 21 Dec 2015 12:33:13 +1100 Subject: [PATCH] ckdb - comment ktree find before and after --- src/ktree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ktree.c b/src/ktree.c index c70131f2..16356452 100644 --- a/src/ktree.c +++ b/src/ktree.c @@ -638,6 +638,7 @@ K_ITEM *_find_in_ktree(K_TREE *tree, K_ITEM *data, K_TREE_CTX *ctx, bool chklock } } +// First item after data K_ITEM *_find_after_in_ktree(K_TREE *tree, K_ITEM *data, K_TREE_CTX *ctx, LOCK_MAYBE bool chklock, KTREE_FFL_ARGS) { K_NODE *knode, *old = NULL; @@ -690,6 +691,7 @@ K_ITEM *_find_after_in_ktree(K_TREE *tree, K_ITEM *data, K_TREE_CTX *ctx, LOCK_M } } +// Last item before data K_ITEM *_find_before_in_ktree(K_TREE *tree, K_ITEM *data, K_TREE_CTX *ctx, KTREE_FFL_ARGS) { K_NODE *knode, *old = NULL;