remove println

This commit is contained in:
siddontang 2014-11-21 10:56:56 +08:00
parent 9e90493992
commit 2f4aaa4ba5
2 changed files with 1 additions and 2 deletions

View File

@ -220,7 +220,6 @@ func (m *mmapWriteFile) Write(b []byte) (n int, err error) {
extra := int64(len(b)) - (m.size - m.offset) extra := int64(len(b)) - (m.size - m.offset)
if extra > 0 { if extra > 0 {
newSize := m.size + extra + m.size/10 newSize := m.size + extra + m.size/10
println("need truncate ???", newSize, m.size, len(b))
if err = m.Truncate(newSize); err != nil { if err = m.Truncate(newSize); err != nil {
return return
} }

View File

@ -177,7 +177,7 @@ func (s *FileStore) storeLog(l *Log) error {
r, err = s.w.Flush() r, err = s.w.Flush()
if err != nil { 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() s.w.Close()