minor changes
This commit is contained in:
parent
dcb0de0b5c
commit
5f70d7b241
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @file user.cpp
|
||||
* @file trans.cpp
|
||||
* @author slguan (slguan@taosdata.com)
|
||||
* @brief MNODE module trans tests
|
||||
* @version 1.0
|
||||
|
@ -75,12 +75,12 @@ TEST_F(DndTestTrans, 01_CreateUser_Crash) {
|
|||
test.SendShowRetrieveMsg();
|
||||
EXPECT_EQ(test.GetShowRows(), 2);
|
||||
|
||||
// CheckBinary("root", TSDB_USER_LEN);
|
||||
// CheckBinary("u2", TSDB_USER_LEN);
|
||||
// CheckBinary("super", 10);
|
||||
// CheckBinary("normal", 10);
|
||||
// CheckTimestamp();
|
||||
// CheckTimestamp();
|
||||
// CheckBinary("root", TSDB_USER_LEN);
|
||||
// CheckBinary("root", TSDB_USER_LEN);
|
||||
CheckBinary("root", TSDB_USER_LEN);
|
||||
CheckBinary("u2", TSDB_USER_LEN);
|
||||
CheckBinary("super", 10);
|
||||
CheckBinary("normal", 10);
|
||||
CheckTimestamp();
|
||||
CheckTimestamp();
|
||||
CheckBinary("root", TSDB_USER_LEN);
|
||||
CheckBinary("root", TSDB_USER_LEN);
|
||||
}
|
|
@ -64,8 +64,9 @@ SSdb *sdbInit(SSdbOpt *pOption) {
|
|||
void sdbCleanup(SSdb *pSdb) {
|
||||
mDebug("start to cleanup sdb");
|
||||
|
||||
if (pSdb->curVer != pSdb->lastCommitVer) {
|
||||
mDebug("write sdb file for current ver:%" PRId64 " != last commit ver:%" PRId64, pSdb->curVer, pSdb->lastCommitVer);
|
||||
if (pSdb->curVer > pSdb->lastCommitVer) {
|
||||
mDebug("write sdb file for current ver:%" PRId64 " larger than last commit ver:%" PRId64, pSdb->curVer,
|
||||
pSdb->lastCommitVer);
|
||||
sdbWriteFile(pSdb);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue