Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

loadNext, loadCurrent, 会产生 号段 使用上的跳跃 #47

@gMan1990

Description

@gMan1990
  1. 假设当前使用的号段为①
  2. 调用nextId多次后,会走进loadNext, 假设next = querySegmentId()里的querySegmentId已经执行完了,等待赋值给next
    • 假设这时候查到的号段为②
  3. 继续调用nextId直到用完,会走进loadCurrent。然后因为上面的next还没赋值,所以会走进querySegmentId
    • 假设这时候查到的号段为③

造成的结果: ①号段使用完了,③号段接着用,然后才可能用到②号段

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions