mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-08-15 19:56:39 +00:00
fmt
This commit is contained in:
@@ -298,7 +298,7 @@ func (bc *BrokerClient) ReadRecordsFromOffset(ctx context.Context, session *Brok
|
||||
//
|
||||
// The session will naturally advance as records are consumed, so we should NOT
|
||||
// recreate it just because requestedOffset != session.StartOffset
|
||||
|
||||
|
||||
// CRITICAL: Re-check the offset under session lock to prevent race conditions
|
||||
// Another thread might be reading from this session right now and advancing the offset
|
||||
session.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user