correct sequence generating
git-svn-id: https://weed-fs.googlecode.com/svn/trunk@30 282b0af5-e82d-9cf1-ede4-77906d7719d0
This commit is contained in:
@@ -69,6 +69,7 @@ func (m *Mapper) PickForWrite() (string, MachineInfo) {
|
||||
func (m *Mapper) NextFileId() uint64 {
|
||||
if m.fileIdCounter <= 0 {
|
||||
m.fileIdCounter = FileIdSaveInterval
|
||||
m.FileIdSequence += FileIdSaveInterval
|
||||
m.saveSequence()
|
||||
}
|
||||
m.fileIdCounter--
|
||||
|
||||
Reference in New Issue
Block a user