cmd/geth: add db-command to inspect freezer index (#22633)

This PR makes it easier to inspect the freezer index, which could be useful to investigate things like #22111
This commit is contained in:
Martin Holst Swende
2021-04-13 15:45:30 +02:00
committed by GitHub
parent 6c27d8f996
commit 271e5b7fc9
5 changed files with 72 additions and 15 deletions

View File

@ -525,7 +525,7 @@ func TestOffset(t *testing.T) {
f.Append(4, getChunk(20, 0xbb))
f.Append(5, getChunk(20, 0xaa))
f.printIndex()
f.DumpIndex(0, 100)
f.Close()
}
// Now crop it.
@ -572,7 +572,7 @@ func TestOffset(t *testing.T) {
if err != nil {
t.Fatal(err)
}
f.printIndex()
f.DumpIndex(0, 100)
// It should allow writing item 6
f.Append(numDeleted+2, getChunk(20, 0x99))