diff --git a/src/os/inc/osDef.h b/src/os/inc/osDef.h index e5b5e0f895c0c90f030f278d36be42803ac9483e..a21b721565911b12a3f5d41051c250897ca61946 100644 --- a/src/os/inc/osDef.h +++ b/src/os/inc/osDef.h @@ -100,7 +100,7 @@ extern "C" { #elif defined(__GNUC__) && !defined(threadlocal) #define threadlocal __thread #else - #define threadlocal + #define threadlocal __declspec( thread ) #endif #ifdef __cplusplus diff --git a/src/wal/src/walMgmt.c b/src/wal/src/walMgmt.c index 62b066500c3c5a3927d20092d14727ac057b2acd..39ce2657aa2c27c2249d1492f5dbcde2517cc988 100644 --- a/src/wal/src/walMgmt.c +++ b/src/wal/src/walMgmt.c @@ -44,7 +44,7 @@ int32_t walInit() { return code; } - wInfo("wal module is initialized, refId:%d", tsWal.refId); + wInfo("wal module is initialized, rsetId:%d", tsWal.refId); return code; } @@ -203,7 +203,7 @@ static int32_t walCreateThread() { } pthread_attr_destroy(&thAttr); - wDebug("wal thread is launched"); + wDebug("wal thread is launched, thread:0x%08" PRIx64, taosGetPthreadId(tsWal.thread)); return TSDB_CODE_SUCCESS; } diff --git a/tests/tsim/src/simMain.c b/tests/tsim/src/simMain.c index 6c9c492a5a0a976b82c6230eaa40e6493e0dc1fd..251b4f80bb32b40d816e297410ac1f0792e66a9d 100644 --- a/tests/tsim/src/simMain.c +++ b/tests/tsim/src/simMain.c @@ -64,7 +64,7 @@ int32_t main(int32_t argc, char *argv[]) { simExecuteScript(script); int32_t ret = simExecSuccess ? 0 : -1; - simError("execute result %d", ret); + simInfo("execute result %d", ret); return ret; } \ No newline at end of file