• Ferenc Szabo's avatar
    swarm/storage: fix garbage collector index skew (#18080) · c41e1bd1
    Ferenc Szabo authored
    On file access LDBStore's tryAccessIdx() function created a faulty
    GC Index Data entry, because not indexing the ikey correctly.
    That caused the chunk addresses/hashes to start with '00' and the last
    two digits were dropped. => Incorrect chunk address.
    
    Besides the fix, the commit also contains a schema change which will
    run the CleanGCIndex() function to clean the GC index from erroneous
    entries.
    
    Note: CleanGCIndex() rebuilds the index from scratch which can take
    a really-really long time with a huge DB (possibly an hour).
    c41e1bd1
Name
Last commit
Last update
..
api Loading commit data...
bmt Loading commit data...
chunk Loading commit data...
dev Loading commit data...
fuse Loading commit data...
grafana_dashboards Loading commit data...
log Loading commit data...
metrics Loading commit data...
multihash Loading commit data...
network Loading commit data...
pot Loading commit data...
pss Loading commit data...
sctx Loading commit data...
services/swap Loading commit data...
spancontext Loading commit data...
state Loading commit data...
storage Loading commit data...
testutil Loading commit data...
tracing Loading commit data...
version Loading commit data...
AUTHORS Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
network_test.go Loading commit data...
state.go Loading commit data...
swarm.go Loading commit data...
swarm_test.go Loading commit data...