mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-29 16:30:44 +01:00
fix leader master /dir/lookup api
Signed-off-by: Lei Liu <lei01.liu@horizon.ai>
This commit is contained in:
1 parent
57e441d67b
commit
f2f90436ef
4 files changed
+15
-9
No files matched your search
@@ -15,12 +15,12 @@ func NewMemorySequencer() (m *MemorySequencer) {
|
||||
return
|
||||
}
|
||||
|
||||
func (m *MemorySequencer) NextFileId(count uint64) (uint64, uint64) {
|
||||
func (m *MemorySequencer) NextFileId(count uint64) uint64 {
|
||||
m.sequenceLock.Lock()
|
||||
defer m.sequenceLock.Unlock()
|
||||
ret := m.counter
|
||||
m.counter += uint64(count)
|
||||
return ret, count
|
||||
m.counter += count
|
||||
return ret
|
||||
}
|
||||
|
||||
func (m *MemorySequencer) SetMax(seenValue uint64) {
|
||||
|
||||
Reference in new issue
Block a user