enh: test coverage of tlog
This commit is contained in:
parent
db56c38b5f
commit
1d91252188
|
@ -101,10 +101,8 @@ bool tsLogEmbedded = 0;
|
||||||
bool tsAsyncLog = true;
|
bool tsAsyncLog = true;
|
||||||
#ifdef ASSERT_NOT_CORE
|
#ifdef ASSERT_NOT_CORE
|
||||||
bool tsAssert = false;
|
bool tsAssert = false;
|
||||||
#define LOG_BUFFER_WAIT_SEC 20
|
|
||||||
#else
|
#else
|
||||||
bool tsAssert = true;
|
bool tsAssert = true;
|
||||||
#define LOG_BUFFER_WAIT_SEC 2
|
|
||||||
#endif
|
#endif
|
||||||
int32_t tsNumOfLogLines = 10000000;
|
int32_t tsNumOfLogLines = 10000000;
|
||||||
int32_t tsLogKeepDays = 0;
|
int32_t tsLogKeepDays = 0;
|
||||||
|
@ -444,7 +442,7 @@ static OldFileKeeper *taosOpenNewFile() {
|
||||||
static void *taosThreadToCloseOldFile(void *param) {
|
static void *taosThreadToCloseOldFile(void *param) {
|
||||||
if (!param) return NULL;
|
if (!param) return NULL;
|
||||||
OldFileKeeper *oldFileKeeper = (OldFileKeeper *)param;
|
OldFileKeeper *oldFileKeeper = (OldFileKeeper *)param;
|
||||||
taosSsleep(LOG_BUFFER_WAIT_SEC);
|
taosSsleep(20);
|
||||||
taosWLockLatch(&tsLogRotateLatch);
|
taosWLockLatch(&tsLogRotateLatch);
|
||||||
taosCloseLogByFd(oldFileKeeper->pOldFile);
|
taosCloseLogByFd(oldFileKeeper->pOldFile);
|
||||||
taosKeepOldLog(oldFileKeeper->keepName);
|
taosKeepOldLog(oldFileKeeper->keepName);
|
||||||
|
|
Loading…
Reference in New Issue