OLD | NEW |
1 package db | 1 package db |
2 | 2 |
3 import ( | 3 import ( |
4 "bytes" | 4 "bytes" |
5 "encoding/gob" | 5 "encoding/gob" |
6 "fmt" | 6 "fmt" |
7 "sync" | 7 "sync" |
8 "time" | 8 "time" |
9 | 9 |
10 "github.com/skia-dev/glog" | 10 "github.com/skia-dev/glog" |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 if err := b.write(); err != nil { | 491 if err := b.write(); err != nil { |
492 // If write returns an error, we must revert to previous
. | 492 // If write returns an error, we must revert to previous
. |
493 if putErr := b.putCommitComment(existing); putErr != nil
{ | 493 if putErr := b.putCommitComment(existing); putErr != nil
{ |
494 glog.Warning("Unexpected error: %s", putErr) | 494 glog.Warning("Unexpected error: %s", putErr) |
495 } | 495 } |
496 return err | 496 return err |
497 } | 497 } |
498 } | 498 } |
499 return nil | 499 return nil |
500 } | 500 } |
OLD | NEW |