• 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
..
encryption Loading commit data...
feed Loading commit data...
mock Loading commit data...
chunker.go Loading commit data...
chunker_test.go Loading commit data...
common_test.go Loading commit data...
database.go Loading commit data...
error.go Loading commit data...
filestore.go Loading commit data...
filestore_test.go Loading commit data...
hasherstore.go Loading commit data...
hasherstore_test.go Loading commit data...
ldbstore.go Loading commit data...
ldbstore_test.go Loading commit data...
localstore.go Loading commit data...
localstore_test.go Loading commit data...
memstore.go Loading commit data...
memstore_test.go Loading commit data...
netstore.go Loading commit data...
netstore_test.go Loading commit data...
pyramid.go Loading commit data...
schema.go Loading commit data...
swarmhasher.go Loading commit data...
types.go Loading commit data...