Merge pull request #6650 from taosdata/fix/TD-4950
[TD-4950]<fix>: fix undefined left bit shift
This commit is contained in:
commit
d546f0bb39
|
@ -1068,7 +1068,7 @@ static int32_t mnodeProcessCreateSuperTableMsg(SMnodeMsg *pMsg) {
|
|||
pStable->info.tableId = strdup(pCreate->tableName);
|
||||
pStable->info.type = TSDB_SUPER_TABLE;
|
||||
pStable->createdTime = taosGetTimestampMs();
|
||||
int64_t x = (us&0x000000FFFFFFFFFF);
|
||||
uint64_t x = (us&0x000000FFFFFFFFFF);
|
||||
x = x<<24;
|
||||
pStable->uid = x + ((sdbGetVersion() & ((1ul << 16) - 1ul)) << 8) + (taosRand() & ((1ul << 8) - 1ul));
|
||||
pStable->sversion = 0;
|
||||
|
|
Loading…
Reference in New Issue