1. v0.54
2. go vet found many printing format errors
This commit is contained in:
@@ -84,7 +84,7 @@ func BenchmarkCdbMap9List(t *testing.B) {
|
||||
t.Logf("opening %s", indexFile)
|
||||
idx, err := LoadNeedleMap(indexFile)
|
||||
if err != nil {
|
||||
t.Fatalf("cannot load %s: %s", indexFile, err)
|
||||
t.Fatalf("cannot load %s: %s", indexFile.Name(), err)
|
||||
}
|
||||
defer idx.Close()
|
||||
b := getMemStats()
|
||||
@@ -113,7 +113,7 @@ func BenchmarkCdbMap9List(t *testing.B) {
|
||||
glog.V(0).Infof("%d. %s", i, nv)
|
||||
}
|
||||
if nv2, ok := m.Get(uint64(nv.Key)); !ok || nv2 == nil {
|
||||
t.Errorf("%s in index, not in cdb", nv.Key)
|
||||
t.Errorf("%d in index, not in cdb", nv.Key)
|
||||
} else if nv2.Key != nv.Key {
|
||||
t.Errorf("requested key %d from cdb, got %d", nv.Key, nv2.Key)
|
||||
} else if nv2.Offset != nv.Offset {
|
||||
@@ -137,7 +137,7 @@ func BenchmarkCdbMap9List(t *testing.B) {
|
||||
return nil
|
||||
}
|
||||
if nv2, ok := m.Get(uint64(nv.Key)); !ok || nv2 == nil {
|
||||
t.Errorf("%s in cdb, not in index", nv.Key)
|
||||
t.Errorf("%d in cdb, not in index", nv.Key)
|
||||
} else if nv2.Key != nv.Key {
|
||||
t.Errorf("requested key %d from index, got %d", nv.Key, nv2.Key)
|
||||
} else if nv2.Offset != nv.Offset {
|
||||
|
||||
Reference in New Issue
Block a user