提交 b7f65ca3 编写于 作者: K kailixu

chore: log format

上级 aa258e05
......@@ -2511,7 +2511,7 @@ static int32_t mnodeProcessMetaSyncDropTableMsg(SMnodeMsg *pMsg) {
if (pMsg->pVgroup == NULL) pMsg->pVgroup = mnodeGetVgroup(vgId);
if (pMsg->pVgroup == NULL) {
mError("%s:%d, msg:%p, app:%p table:%s, failed to drop table, vgroup not exist", __func__, __LINE__, pMsg,
mError("%s:%d, msg:%p, app:%p table:%s, failed to drop table vgroup not exist", __func__, __LINE__, pMsg,
pMsg->rpcMsg.ahandle, pTable->info.tableId);
code = TSDB_CODE_MND_APP_ERROR;
goto _exit;
......
......@@ -177,29 +177,29 @@ int tsdbDropTable(STsdbRepo *repo, STableId tableId) {
tbname = strdup(TABLE_CHAR_NAME(pTable));
if (tbname == NULL) {
terrno = TSDB_CODE_TDB_OUT_OF_MEMORY;
tsdbError("vgId:%d, failed to drop table %s since %s! tid:%d, uid:%" PRIu64, REPO_ID(pRepo), tbname,
tsdbError("vgId:%d, failed to drop table since %s! tb:%s, tid:%d, uid:%" PRIu64, REPO_ID(pRepo), tbname,
tstrerror(terrno), tableId.tid, uid);
return -1;
}
// Write to KV store first
if (tsdbRemoveTableFromStore(pRepo, pTable) < 0) {
tsdbError("vgId:%d, failed to drop table %s since %s! tid:%d, uid:%" PRIu64, REPO_ID(pRepo), tbname,
tsdbError("vgId:%d, failed to drop table since %s! tb:%s, tid:%d, uid:%" PRIu64, REPO_ID(pRepo), tbname,
tstrerror(terrno), tableId.tid, uid);
goto _err;
}
// Remove table from Meta
if (tsdbRmTableFromMeta(pRepo, pTable) < 0) {
tsdbError("vgId:%d, failed to drop table %s since %s! tid:%d, uid:%" PRIu64, REPO_ID(pRepo), tbname,
tsdbError("vgId:%d, failed to drop table since %s! tb:%s, tid:%d, uid:%" PRIu64, REPO_ID(pRepo), tbname,
tstrerror(terrno), tableId.tid, uid);
goto _err;
}
if (tsMetaSyncOption) {
tsdbInfo("vgId:%d, table %s is dropped! tid:%d, uid:%" PRId64, pRepo->config.tsdbId, tbname, tid, uid);
tsdbInfo("vgId:%d, table is dropped! tb:%s, tid:%d, uid:%" PRId64, pRepo->config.tsdbId, tbname, tid, uid);
} else {
tsdbDebug("vgId:%d, table %s is dropped! tid:%d, uid:%" PRId64, pRepo->config.tsdbId, tbname, tid, uid);
tsdbDebug("vgId:%d, table is dropped! tb:%s, tid:%d, uid:%" PRId64, pRepo->config.tsdbId, tbname, tid, uid);
}
free(tbname);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册