提交 5f70d7b2 编写于 作者: S Shengliang Guan

minor changes

上级 dcb0de0b
/** /**
* @file user.cpp * @file trans.cpp
* @author slguan (slguan@taosdata.com) * @author slguan (slguan@taosdata.com)
* @brief MNODE module trans tests * @brief MNODE module trans tests
* @version 1.0 * @version 1.0
...@@ -75,12 +75,12 @@ TEST_F(DndTestTrans, 01_CreateUser_Crash) { ...@@ -75,12 +75,12 @@ TEST_F(DndTestTrans, 01_CreateUser_Crash) {
test.SendShowRetrieveMsg(); test.SendShowRetrieveMsg();
EXPECT_EQ(test.GetShowRows(), 2); EXPECT_EQ(test.GetShowRows(), 2);
// CheckBinary("root", TSDB_USER_LEN); CheckBinary("root", TSDB_USER_LEN);
// CheckBinary("u2", TSDB_USER_LEN); CheckBinary("u2", TSDB_USER_LEN);
// CheckBinary("super", 10); CheckBinary("super", 10);
// CheckBinary("normal", 10); CheckBinary("normal", 10);
// CheckTimestamp(); CheckTimestamp();
// CheckTimestamp(); CheckTimestamp();
// CheckBinary("root", TSDB_USER_LEN); CheckBinary("root", TSDB_USER_LEN);
// CheckBinary("root", TSDB_USER_LEN); CheckBinary("root", TSDB_USER_LEN);
} }
\ No newline at end of file
...@@ -64,8 +64,9 @@ SSdb *sdbInit(SSdbOpt *pOption) { ...@@ -64,8 +64,9 @@ SSdb *sdbInit(SSdbOpt *pOption) {
void sdbCleanup(SSdb *pSdb) { void sdbCleanup(SSdb *pSdb) {
mDebug("start to cleanup sdb"); mDebug("start to cleanup sdb");
if (pSdb->curVer != pSdb->lastCommitVer) { if (pSdb->curVer > pSdb->lastCommitVer) {
mDebug("write sdb file for current ver:%" PRId64 " != last commit ver:%" PRId64, pSdb->curVer, pSdb->lastCommitVer); mDebug("write sdb file for current ver:%" PRId64 " larger than last commit ver:%" PRId64, pSdb->curVer,
pSdb->lastCommitVer);
sdbWriteFile(pSdb); sdbWriteFile(pSdb);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册