fix:error
This commit is contained in:
parent
864236a8dc
commit
c5dfe169a6
|
@ -214,7 +214,7 @@ int32_t walSkipFetchBody(SWalReader *pRead, const SWalCkHead *pHead);
|
||||||
|
|
||||||
void walRefFirstVer(SWal *, SWalRef *);
|
void walRefFirstVer(SWal *, SWalRef *);
|
||||||
void walRefLastVer(SWal *, SWalRef *);
|
void walRefLastVer(SWal *, SWalRef *);
|
||||||
void walRefCommitVer(SWal *, SWalRef *);
|
//void walRefCommitVer(SWal *, SWalRef *);
|
||||||
|
|
||||||
SWalRef *walOpenRef(SWal *);
|
SWalRef *walOpenRef(SWal *);
|
||||||
void walCloseRef(SWal *pWal, int64_t refId);
|
void walCloseRef(SWal *pWal, int64_t refId);
|
||||||
|
|
|
@ -630,6 +630,8 @@ void *tDecodeSubscribeObj(const void *buf, SMqSubscribeObj *pSub, int8_t sver) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buf = taosDecodeString(buf, &pSub->qmsg);
|
buf = taosDecodeString(buf, &pSub->qmsg);
|
||||||
|
}else{
|
||||||
|
pSub->qmsg = taosStrdup("");
|
||||||
}
|
}
|
||||||
return (void *)buf;
|
return (void *)buf;
|
||||||
}
|
}
|
||||||
|
|
|
@ -379,7 +379,7 @@ int32_t tqCreateHandle(STQ* pTq, SMqRebVgReq* req, STqHandle* handle){
|
||||||
handle->execHandle.execTb.qmsg = taosStrdup(req->qmsg);
|
handle->execHandle.execTb.qmsg = taosStrdup(req->qmsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
handle->snapshotVer = walGetLastVer(pTq->pVnode->pWal);
|
handle->snapshotVer = walGetCommittedVer(pTq->pVnode->pWal);
|
||||||
|
|
||||||
if(buildHandle(pTq, handle) < 0){
|
if(buildHandle(pTq, handle) < 0){
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -81,11 +81,11 @@ void walRefLastVer(SWal *pWal, SWalRef *pRef) {
|
||||||
wDebug("vgId:%d, wal ref version %" PRId64 " for last", pWal->cfg.vgId, ver);
|
wDebug("vgId:%d, wal ref version %" PRId64 " for last", pWal->cfg.vgId, ver);
|
||||||
}
|
}
|
||||||
|
|
||||||
void walRefCommitVer(SWal *pWal, SWalRef *pRef) {
|
//void walRefCommitVer(SWal *pWal, SWalRef *pRef) {
|
||||||
taosThreadMutexLock(&pWal->mutex);
|
// taosThreadMutexLock(&pWal->mutex);
|
||||||
int64_t ver = walGetCommittedVer(pWal);
|
// int64_t ver = walGetCommittedVer(pWal);
|
||||||
pRef->refVer = ver;
|
// pRef->refVer = ver;
|
||||||
|
//
|
||||||
taosThreadMutexUnlock(&pWal->mutex);
|
// taosThreadMutexUnlock(&pWal->mutex);
|
||||||
wDebug("vgId:%d, wal ref version %" PRId64 " for committed", pWal->cfg.vgId, ver);
|
// wDebug("vgId:%d, wal ref version %" PRId64 " for committed", pWal->cfg.vgId, ver);
|
||||||
}
|
//}
|
||||||
|
|
Loading…
Reference in New Issue