From 0dcee21a19216041e20b12e50375b12f2582c592 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 30 Jul 2020 15:56:13 +0800 Subject: [PATCH] return success --- src/tsdb/src/tsdbMeta.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tsdb/src/tsdbMeta.c b/src/tsdb/src/tsdbMeta.c index ddb935b7e5..d389a96fee 100644 --- a/src/tsdb/src/tsdbMeta.c +++ b/src/tsdb/src/tsdbMeta.c @@ -69,9 +69,9 @@ int tsdbCreateTable(TSDB_REPO_T *repo, STableCfg *pCfg) { if (tid < pMeta->maxTables && pMeta->tables[tid] != NULL) { if (TABLE_UID(pMeta->tables[tid]) == pCfg->tableId.uid) { - tsdbError("vgId:%d table %s already exists, tid %d uid %" PRId64, REPO_ID(pRepo), TABLE_CHAR_NAME(pMeta->tables[tid]), - TABLE_TID(pMeta->tables[tid]), TABLE_UID(pMeta->tables[tid])); - return TSDB_CODE_TDB_TABLE_ALREADY_EXIST; + tsdbError("vgId:%d table %s already exists, tid %d uid %" PRId64, REPO_ID(pRepo), + TABLE_CHAR_NAME(pMeta->tables[tid]), TABLE_TID(pMeta->tables[tid]), TABLE_UID(pMeta->tables[tid])); + return 0; } else { tsdbError("vgId:%d table %s at tid %d uid %" PRIu64 " exists, replace it with new table, this can be not reasonable", -- GitLab