提交 61b2f52d 编写于 作者: H Hongze Cheng

now TDB can write 1M records

上级 347d1e6f
...@@ -817,11 +817,12 @@ static int tdbBtreeBalanceNonRoot(SBTree *pBt, SPage *pParent, int idx) { ...@@ -817,11 +817,12 @@ static int tdbBtreeBalanceNonRoot(SBTree *pBt, SPage *pParent, int idx) {
} }
} }
for (int i = 0; i < 3; i++) { // TODO: here has memory leak
if (pDivCell[i]) { // for (int i = 0; i < 3; i++) {
free(pDivCell[i]); // if (pDivCell[i]) {
} // free(pDivCell[i]);
} // }
// }
return 0; return 0;
} }
......
...@@ -6,10 +6,10 @@ TEST(tdb_test, simple_test) { ...@@ -6,10 +6,10 @@ TEST(tdb_test, simple_test) {
int ret; int ret;
STEnv *pEnv; STEnv *pEnv;
STDb *pDb; STDb *pDb;
int nData = 160511; int nData = 1000000;
// Open Env // Open Env
ret = tdbEnvOpen("tdb", 1024, 25600, &pEnv); ret = tdbEnvOpen("tdb", 4096, 25600, &pEnv);
GTEST_ASSERT_EQ(ret, 0); GTEST_ASSERT_EQ(ret, 0);
// Create a database // Create a database
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册