mirror of https://github.com/ledisdb/ledisdb.git
remove println
This commit is contained in:
parent
9e90493992
commit
2f4aaa4ba5
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue