From dfb0921c1f392d80851aa927bf1c28092dd4680c Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Sat, 14 Nov 2020 21:40:55 +0800 Subject: [PATCH] fix coredump --- src/util/src/tskiplist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tskiplist.c b/src/util/src/tskiplist.c index 06d9287eaf..4ae13bd7e5 100644 --- a/src/util/src/tskiplist.c +++ b/src/util/src/tskiplist.c @@ -138,7 +138,7 @@ void tSkipListPutBatch(SSkipList *pSkipList, void **ppData, int ndata) { hasDup = tSkipListGetPosToPut(pSkipList, backward, ppData[0]); tSkipListPutImpl(pSkipList, ppData[0], backward, false, hasDup); - for (int level = 0; level < pSkipList->maxLevel - 1; level++) { + for (int level = 0; level < pSkipList->maxLevel; level++) { forward[level] = SL_NODE_GET_BACKWARD_POINTER(backward[level], level); }