From b7f65ca32e3505ef796cbe85155c5d1b9ece7f10 Mon Sep 17 00:00:00 2001 From: kailixu Date: Sun, 19 Feb 2023 08:32:32 +0800 Subject: [PATCH] chore: log format --- src/mnode/src/mnodeTable.c | 2 +- src/tsdb/src/tsdbMeta.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mnode/src/mnodeTable.c b/src/mnode/src/mnodeTable.c index 74275dc0ef..f7ed3e8cb9 100644 --- a/src/mnode/src/mnodeTable.c +++ b/src/mnode/src/mnodeTable.c @@ -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; diff --git a/src/tsdb/src/tsdbMeta.c b/src/tsdb/src/tsdbMeta.c index d74beb102f..8b498deae4 100644 --- a/src/tsdb/src/tsdbMeta.c +++ b/src/tsdb/src/tsdbMeta.c @@ -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); -- GitLab