Commit b7afe5f1 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b4f4e42b
......@@ -1233,7 +1233,7 @@ retry:
atomic.AddInt32(&head.inflightOSCacheUploads, -1)
if bug {
panic(fmt.Sprintf("BUG: bigfile %s: blk %d: f.loading mutated while uploading data to pagecache", oid, blk))
panicf("BUG: bigfile %s: blk %d: f.loading mutated while uploading data to pagecache", oid, blk)
}
if st == fuse.OK {
......
......@@ -325,7 +325,7 @@ func (zb *ZBlk1) loadBlkData(ctx context.Context) ([]byte, zodb.Tid, error) {
})
default:
panic(fmt.Sprintf("IOBTree has %s child", typeOf(child)))
panicf("IOBTree has %s child", typeOf(child))
}
}
......
......@@ -21,8 +21,6 @@ package main
// ΔFtail - merge btree.ΔTail with history of ZBlk
import (
"fmt"
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/zodb/btree"
......@@ -74,7 +72,7 @@ func (δf *ΔFTail) Update(δZ *zodb.EventCommit) ΔFentry {
for _, δ := range δB.Changev {
files := δf.fileIdx[δ.Root]
if len(files) == 0 {
panic(fmt.Sprintf("ΔFTail: root<%s> -> ø file", δ.Root.POid()))
panicf("ΔFTail: root<%s> -> ø file", δ.Root.POid())
}
for file := range files {
changev = append(changev, ΔFile{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment