From 6658d5de455a2da5e48ad1c4c7dffa18a9fa1dec Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 19 Mar 2013 13:37:36 -0700 Subject: [PATCH] fix sequence assignment error --- go/sequence/sequence.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/sequence/sequence.go b/go/sequence/sequence.go index 0237f1f80..3130740f1 100644 --- a/go/sequence/sequence.go +++ b/go/sequence/sequence.go @@ -62,7 +62,7 @@ func (m *SequencerImpl) NextFileId(count int) (uint64, int) { m.saveSequence() } m.fileIdCounter = m.fileIdCounter - uint64(count) - return m.FileIdSequence - m.fileIdCounter, count + return m.FileIdSequence - m.fileIdCounter - uint64(count), count } func (m *SequencerImpl) saveSequence() { log.Println("Saving file id sequence", m.FileIdSequence, "to", path.Join(m.dir, m.fileName+".seq"))