[TD-4394]fix core when modify tag width

This commit is contained in:
lichuang 2021-06-15 10:54:59 +08:00
parent beb8f34a52
commit c8a42e1182
1 changed files with 1 additions and 1 deletions

View File

@ -1501,7 +1501,7 @@ static int32_t mnodeChangeSuperTableTag(SMnodeMsg *pMsg) {
}
// update
SSchema *schema = (SSchema *) (pStable->schema + col);
SSchema *schema = (SSchema *) (pStable->schema + col + pStable->numOfColumns);
ASSERT(schema->type == TSDB_DATA_TYPE_BINARY || schema->type == TSDB_DATA_TYPE_NCHAR);
schema->bytes = pAlter->schema[0].bytes;
mInfo("msg:%p, app:%p stable %s, start to modify tag len %s to %d", pMsg, pMsg->rpcMsg.ahandle, pStable->info.tableId,