mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
STDOUT debug messages removed, dbStore default capacity increased
This commit is contained in:
parent
da493362ba
commit
07993aa2ea
2 changed files with 1 additions and 4 deletions
|
|
@ -351,14 +351,12 @@ func (self *LazyChunkReader) join(b []byte, off int64, eoff int64, depth int, tr
|
||||||
defer parentWg.Done()
|
defer parentWg.Done()
|
||||||
|
|
||||||
dpaLogger.Debugf("depth: %v, loff: %v, eoff: %v, chunk.Size: %v, treeSize: %v", depth, off, eoff, chunk.Size, treeSize)
|
dpaLogger.Debugf("depth: %v, loff: %v, eoff: %v, chunk.Size: %v, treeSize: %v", depth, off, eoff, chunk.Size, treeSize)
|
||||||
fmt.Printf("depth: %v, loff: %v, eoff: %v, chunk.Size: %v, treeSize: %v\n", depth, off, eoff, chunk.Size, treeSize)
|
|
||||||
|
|
||||||
// find appropriate block level
|
// find appropriate block level
|
||||||
for chunk.Size < treeSize && depth > 0 {
|
for chunk.Size < treeSize && depth > 0 {
|
||||||
treeSize /= self.chunker.Branches
|
treeSize /= self.chunker.Branches
|
||||||
depth--
|
depth--
|
||||||
}
|
}
|
||||||
fmt.Printf("-> depth: %v, loff: %v, eoff: %v, len(chunk.Data): %v, chunk.Size: %v, treeSize: %v\n", depth, off, eoff, len(chunk.Data), chunk.Size, treeSize)
|
|
||||||
|
|
||||||
if depth == 0 {
|
if depth == 0 {
|
||||||
dpaLogger.Debugf("len(b): %v, off: %v, eoff: %v, chunk.Size: %v, treeSize: %v", depth, len(b), off, eoff, chunk.Size, treeSize)
|
dpaLogger.Debugf("len(b): %v, off: %v, eoff: %v, chunk.Size: %v, treeSize: %v", depth, len(b), off, eoff, chunk.Size, treeSize)
|
||||||
|
|
@ -395,7 +393,6 @@ func (self *LazyChunkReader) join(b []byte, off int64, eoff int64, depth int, tr
|
||||||
C: make(chan bool), // close channel to signal data delivery
|
C: make(chan bool), // close channel to signal data delivery
|
||||||
}
|
}
|
||||||
dpaLogger.Debugf("chunk data sent for %x (key interval in chunk %v-%v)", ch.Key[:4], j*self.chunker.hashSize, (j+1)*self.chunker.hashSize)
|
dpaLogger.Debugf("chunk data sent for %x (key interval in chunk %v-%v)", ch.Key[:4], j*self.chunker.hashSize, (j+1)*self.chunker.hashSize)
|
||||||
fmt.Printf("chunk data sent for %x (key interval in chunk %v-%v)\n", ch.Key[:4], j*self.chunker.hashSize, (j+1)*self.chunker.hashSize)
|
|
||||||
self.chunkC <- ch // submit retrieval request, someone should be listening on the other side (or we will time out globally)
|
self.chunkC <- ch // submit retrieval request, someone should be listening on the other side (or we will time out globally)
|
||||||
|
|
||||||
// waiting for the chunk retrieval
|
// waiting for the chunk retrieval
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,7 @@ func newDbStore(path string) (s *dbStore, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
s.setCapacity(5000)
|
s.setCapacity(50000) // TODO define default capacity as constant
|
||||||
|
|
||||||
s.gcStartPos = make([]byte, 1)
|
s.gcStartPos = make([]byte, 1)
|
||||||
s.gcStartPos[0] = kpIndex
|
s.gcStartPos[0] = kpIndex
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue