From 2f4aaa4ba53622f52d5cbf7cd12a6b6d5460ecb5 Mon Sep 17 00:00:00 2001 From: siddontang Date: Fri, 21 Nov 2014 10:56:56 +0800 Subject: [PATCH] remove println --- rpl/file_io.go | 1 - rpl/file_store.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rpl/file_io.go b/rpl/file_io.go index 5518b38..08e9d2e 100644 --- a/rpl/file_io.go +++ b/rpl/file_io.go @@ -220,7 +220,6 @@ func (m *mmapWriteFile) Write(b []byte) (n int, err error) { extra := int64(len(b)) - (m.size - m.offset) if extra > 0 { newSize := m.size + extra + m.size/10 - println("need truncate ???", newSize, m.size, len(b)) if err = m.Truncate(newSize); err != nil { return } diff --git a/rpl/file_store.go b/rpl/file_store.go index 9c00b5e..161ab8d 100644 --- a/rpl/file_store.go +++ b/rpl/file_store.go @@ -177,7 +177,7 @@ func (s *FileStore) storeLog(l *Log) error { r, err = s.w.Flush() if err != nil { - log.Error("write table flush error %s, can not store now", err.Error()) + log.Fatal("write table flush error %s, can not store!!!", err.Error()) s.w.Close()