From a9acfce8860d6174a734262e010f8108b469b406 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 25 Mar 2022 08:41:00 +0000 Subject: [PATCH] more TDB --- source/libs/tdb/src/db/tdbBtree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/libs/tdb/src/db/tdbBtree.c b/source/libs/tdb/src/db/tdbBtree.c index d135eedb7c..de77fb2649 100644 --- a/source/libs/tdb/src/db/tdbBtree.c +++ b/source/libs/tdb/src/db/tdbBtree.c @@ -1165,8 +1165,7 @@ int tdbBtreeNext(SBTC *pBtc, void **ppKey, int *kLen, void **ppVal, int *vLen) { void *pKey, *pVal; int ret; - if (0) { - // TODO: no valid data current cursor is pointing to + if (pBtc->idx < 0) { return -1; }