Merge pull request #22800 from taosdata/fix/TS-3922-main

fix:[TS-3922] make SStreamObj->->currentTick aligned by 8
This commit is contained in:
wade zhang 2023-09-10 22:17:07 +08:00 committed by GitHub
commit 635d405867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -667,6 +667,7 @@ typedef struct {
char name[TSDB_STREAM_FNAME_LEN]; char name[TSDB_STREAM_FNAME_LEN];
// ctl // ctl
SRWLatch lock; SRWLatch lock;
// create info // create info
int64_t createTime; int64_t createTime;
int64_t updateTime; int64_t updateTime;

View File

@ -1111,7 +1111,7 @@ static int32_t mndAddStreamCheckpointToTrans(STrans *pTrans, SStreamObj *pStream
pStream->checkpointId = checkpointId; pStream->checkpointId = checkpointId;
pStream->checkpointFreq = taosGetTimestampMs(); pStream->checkpointFreq = taosGetTimestampMs();
atomic_store_64(&pStream->currentTick, 0); pStream->currentTick = 0;
// 3. commit log: stream checkpoint info // 3. commit log: stream checkpoint info
pStream->version = pStream->version + 1; pStream->version = pStream->version + 1;