in this scenario, NextID() could block very long time.
- in a high load:
(sf.sequence + 1) & maskSequence == 0
- in the same time, system clock drift backwards, say 8 hours
this will block the function for 8 hour.
can we use some kind of Monotonic time or add a new function with timeout-control to avoid this?
in this scenario, NextID() could block very long time.
(sf.sequence + 1) & maskSequence == 0this will block the function for 8 hour.
can we use some kind of Monotonic time or add a new function with timeout-control to avoid this?