change count to uint64 to fix #109
fix https://github.com/chrislusf/weed-fs/issues/109
This commit is contained in:
@@ -15,7 +15,7 @@ func NewMemorySequencer() (m *MemorySequencer) {
|
||||
return
|
||||
}
|
||||
|
||||
func (m *MemorySequencer) NextFileId(count int) (uint64, int) {
|
||||
func (m *MemorySequencer) NextFileId(count uint64) (uint64, uint64) {
|
||||
m.sequenceLock.Lock()
|
||||
defer m.sequenceLock.Unlock()
|
||||
ret := m.counter
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package sequence
|
||||
|
||||
type Sequencer interface {
|
||||
NextFileId(count int) (uint64, int)
|
||||
NextFileId(count uint64) (uint64, uint64)
|
||||
SetMax(uint64)
|
||||
Peek() uint64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user