Merge branch '3.0' into enh/refactorBackend

This commit is contained in:
yihaoDeng 2023-11-27 11:10:56 +08:00
parent e9bec34c44
commit e483570cd7
2 changed files with 13 additions and 13 deletions

View File

@ -1340,7 +1340,8 @@ static int32_t mndProcessStreamCheckpointInCandid(SRpcMsg *pReq) {
for (int32_t i = 0; i < taosArrayGetSize(pList); ++i) { for (int32_t i = 0; i < taosArrayGetSize(pList); ++i) {
int64_t *pId = taosArrayGet(pList, i); int64_t *pId = taosArrayGet(pList, i);
taosHashRemove(execInfo.transMgmt.pWaitingList, &pId, sizeof(*pId));
taosHashRemove(execInfo.transMgmt.pWaitingList, pId, sizeof(*pId));
} }
int32_t remain = taosHashGetSize(execInfo.transMgmt.pWaitingList); int32_t remain = taosHashGetSize(execInfo.transMgmt.pWaitingList);

View File

@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "mndTrans.h"
#include "mndStream.h" #include "mndStream.h"
#include "mndTrans.h"
typedef struct SKeyInfo { typedef struct SKeyInfo {
void* pKey; void* pKey;
@ -112,14 +112,13 @@ int32_t mndAddtoCheckpointWaitingList(SStreamObj* pStream, int64_t checkpointId)
taosHashPut(execInfo.transMgmt.pWaitingList, &pStream->uid, sizeof(pStream->uid), &entry, sizeof(entry)); taosHashPut(execInfo.transMgmt.pWaitingList, &pStream->uid, sizeof(pStream->uid), &entry, sizeof(entry));
int32_t size = taosHashGetSize(execInfo.transMgmt.pWaitingList); int32_t size = taosHashGetSize(execInfo.transMgmt.pWaitingList);
mDebug("stream:%" PRIx64 " add into waiting list due to conflict, ts:%" PRId64 ", total in waitingList:%d", mDebug("stream:%" PRIx64 " add into waiting list due to conflict, ts:%" PRId64 " , checkpointId: %" PRId64
pStream->uid, entry.checkpointTs, size); ", total in waitingList:%d",
pStream->uid, entry.checkpointTs, checkpointId, size);
} else { } else {
mDebug("stream:%" PRIx64 " ts:%" PRId64 "already in waiting list, no need to add into", pStream->uid, mDebug("stream:%" PRIx64 " ts:%" PRId64 ", checkpointId:%" PRId64 " already in waiting list, no need to add into",
pEntry->checkpointTs); pStream->uid, pEntry->checkpointTs, checkpointId);
} }
return TSDB_CODE_SUCCESS; return TSDB_CODE_SUCCESS;
} }