From 78cdc64615aff17f3361b7c89ccd5078dd03e463 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Wed, 6 Jul 2022 10:36:56 +0800 Subject: [PATCH] fix:rollback meta change --- source/libs/tdb/src/db/tdbBtree.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/libs/tdb/src/db/tdbBtree.c b/source/libs/tdb/src/db/tdbBtree.c index 10b2839e16..c12bcf7331 100644 --- a/source/libs/tdb/src/db/tdbBtree.c +++ b/source/libs/tdb/src/db/tdbBtree.c @@ -314,7 +314,6 @@ static int tdbDefaultKeyCmprFn(const void *pKey1, int keyLen1, const void *pKey2 static int tdbBtreeOpenImpl(SBTree *pBt) { // Try to get the root page of the an existing btree -#if 0 SPgno pgno; SPage *pPage; int ret; @@ -339,8 +338,6 @@ static int tdbBtreeOpenImpl(SBTree *pBt) { ASSERT(pgno != 0); pBt->root = pgno; -#endif - pBt->root = 0; return 0; } -- GitLab