Merge pull request #6650 from taosdata/fix/TD-4950

[TD-4950]<fix>: fix undefined left bit shift
This commit is contained in:
Hongze Cheng 2021-06-28 14:39:08 +08:00 committed by GitHub
commit d546f0bb39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;