TD-1707 #3834
This commit is contained in:
parent
17ccfe4a0d
commit
9f88152088
|
@ -460,12 +460,14 @@ static int32_t mnodeSuperTableActionUpdate(SSdbOper *pOper) {
|
||||||
void *oldSchema = pTable->schema;
|
void *oldSchema = pTable->schema;
|
||||||
void *oldVgHash = pTable->vgHash;
|
void *oldVgHash = pTable->vgHash;
|
||||||
int32_t oldRefCount = pTable->refCount;
|
int32_t oldRefCount = pTable->refCount;
|
||||||
|
int32_t oldNumOfTables = pTable->numOfTables;
|
||||||
|
|
||||||
memcpy(pTable, pNew, sizeof(SSuperTableObj));
|
memcpy(pTable, pNew, sizeof(SSuperTableObj));
|
||||||
|
|
||||||
pTable->vgHash = oldVgHash;
|
pTable->vgHash = oldVgHash;
|
||||||
pTable->refCount = oldRefCount;
|
pTable->refCount = oldRefCount;
|
||||||
pTable->schema = pNew->schema;
|
pTable->schema = pNew->schema;
|
||||||
|
pTable->numOfTables = oldNumOfTables;
|
||||||
free(pNew);
|
free(pNew);
|
||||||
free(oldTableId);
|
free(oldTableId);
|
||||||
free(oldSchema);
|
free(oldSchema);
|
||||||
|
|
Loading…
Reference in New Issue