提交 f30e6be9 编写于 作者: H Hongze Cheng

fix windows compile error

上级 8bca9c97
...@@ -515,11 +515,11 @@ TEST(tdb_test, multi_thread_query) { ...@@ -515,11 +515,11 @@ TEST(tdb_test, multi_thread_query) {
// start a transaction // start a transaction
txnid++; txnid++;
txn = {.flags = TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED, txn = (TXN){.flags = TDB_TXN_WRITE | TDB_TXN_READ_UNCOMMITTED,
.txnId = -1, .txnId = -1,
.xMalloc = poolMalloc, .xMalloc = poolMalloc,
.xFree = poolFree, .xFree = poolFree,
.xArg = pPool}; .xArg = pPool};
// tdbTxnOpen(&txn, txnid, poolMalloc, poolFree, pPool, ); // tdbTxnOpen(&txn, txnid, poolMalloc, poolFree, pPool, );
tdbBegin(pEnv, &txn); tdbBegin(pEnv, &txn);
...@@ -554,7 +554,7 @@ TEST(tdb_test, multi_thread_query) { ...@@ -554,7 +554,7 @@ TEST(tdb_test, multi_thread_query) {
TXN txn; TXN txn;
SPoolMem *pPool = openPool(); SPoolMem *pPool = openPool();
txn = {.flags = 0, .txnId = 0, .xMalloc = poolMalloc, .xFree = poolFree, .xArg = pPool}; txn = (TXN){.flags = 0, .txnId = 0, .xMalloc = poolMalloc, .xFree = poolFree, .xArg = pPool};
ret = tdbTbcOpen(pDb, &pDBC, &txn); ret = tdbTbcOpen(pDb, &pDBC, &txn);
GTEST_ASSERT_EQ(ret, 0); GTEST_ASSERT_EQ(ret, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册