fix:[TS-3922]rollback because cases failed & avoid atomic_store_64 core if parameters not aligned by 8
This commit is contained in:
parent
c4898bffd8
commit
842bb5742a
|
@ -664,15 +664,10 @@ typedef struct SStreamConf {
|
||||||
} SStreamConf;
|
} SStreamConf;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
char name[TSDB_STREAM_FNAME_LEN];
|
||||||
// ctl
|
// ctl
|
||||||
SRWLatch lock;
|
SRWLatch lock;
|
||||||
|
|
||||||
// 3.0.20
|
|
||||||
int64_t checkpointFreq; // ms
|
|
||||||
int64_t currentTick; // do not serialize
|
|
||||||
int64_t deleteMark;
|
|
||||||
int8_t igCheckUpdate;
|
|
||||||
|
|
||||||
// create info
|
// create info
|
||||||
int64_t createTime;
|
int64_t createTime;
|
||||||
int64_t updateTime;
|
int64_t updateTime;
|
||||||
|
@ -707,7 +702,11 @@ typedef struct {
|
||||||
SSchemaWrapper outputSchema;
|
SSchemaWrapper outputSchema;
|
||||||
SSchemaWrapper tagSchema;
|
SSchemaWrapper tagSchema;
|
||||||
|
|
||||||
char name[TSDB_STREAM_FNAME_LEN];
|
// 3.0.20
|
||||||
|
int64_t checkpointFreq; // ms
|
||||||
|
int64_t currentTick; // do not serialize
|
||||||
|
int64_t deleteMark;
|
||||||
|
int8_t igCheckUpdate;
|
||||||
|
|
||||||
// 3.0.5.
|
// 3.0.5.
|
||||||
int64_t checkpointId;
|
int64_t checkpointId;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue