Skip to content

Commit 05b0a8e

Browse files
committed
levelCount - 1
1 parent fdcb1dd commit 05b0a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/database/redis/redis-skiplist.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public class SkipList {
502502
}
503503

504504
//从最高级开始查看是否有一级索引为空,若为空则层级减1
505-
while (levelCount > 1 && h.forwards[levelCount] == null) {
505+
while (levelCount > 1 && h.forwards[levelCount - 1] == null) {
506506
levelCount--;
507507
}
508508

0 commit comments

Comments
 (0)