aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/localstore.go
Commit message (Collapse)AuthorAgeFilesLines
* Change import go github.com/dexon-foundation/dexonWei-Ning Huang2019-04-091-3/+3
|
* swarm: Debug API and HasChunks() API endpoint (#18980)holisticode2019-02-191-0/+7
| | | | (cherry picked from commit 41597c2856d6ac7328baca1340c3e36ab0edd382)
* swarm/storage: simplify ChunkValidator interface (#18285)Javier Peletier2018-12-121-1/+1
|
* swarm/storage: move 'running migrations for' log line (#18120)Ferenc Szabo2018-11-201-3/+4
| | | So that we only see the log message when we actually have to migrate.
* swarm/storage: fix garbage collector index skew (#18080)Ferenc Szabo2018-11-131-15/+32
| | | | | | | | | | | | | 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).
* swarm/storage: fix access count on dbstore after cache hit (#17978)Ferenc Szabo2018-11-131-0/+1
| | | | | | | Access count was not incremented when chunk was retrieved from cache. So the garbage collector might have deleted the most frequently accessed chunk from disk. Co-authored-by: Ferenc Szabo <ferenc.szabo@ethereum.org>
* swarm/storage: extract isValid. correctly remove invalid chunks from store ↵Anton Evangelatov2018-10-041-21/+21
| | | | on migration (#17835)
* swarm: schemas and migrations (#17813)Anton Evangelatov2018-10-031-0/+39
|
* swarm: Chunk refactor (#17659)Balint Gabor2018-09-131-73/+37
| | | | | | Co-authored-by: Janos Guljas <janos@resenje.org> Co-authored-by: Balint Gabor <balint.g@gmail.com> Co-authored-by: Anton Evangelatov <anton.evangelatov@gmail.com> Co-authored-by: Viktor Trón <viktor.tron@gmail.com>
* swarm/network, swarm/storage: validate chunk size (#17397)Anton Evangelatov2018-08-141-7/+3
| | | | | | | | | | | | | | | | | | * swarm/network, swarm/storage: validate default chunk size * swarm/bmt, swarm/network, swarm/storage: update BMT hash initialisation * swarm/bmt: move segmentCount to tests * swarm/chunk: change chunk.DefaultSize to be untyped const * swarm/storage: add size validator * swarm/storage: add chunk size validation to localstore * swarm/storage: move validation from localstore to validator * swarm/storage: global chunk rules in MRU
* swarm: integrate OpenTracing; propagate ctx to internal APIs (#17169)Anton Evangelatov2018-07-131-13/+14
| | | | | | * swarm: propagate ctx, enable opentracing * swarm/tracing: log error when tracing is misconfigured
* swarm: network rewrite mergeethersphere2018-06-221-35/+167
|
* swarm: initial instrumentation (#15969)Anton Evangelatov2018-02-231-0/+16
| | | | | | | | | | | | | | | | | | * swarm: initial instrumentation with go-metrics * swarm: initialise metrics collection and add ResettingTimer to HTTP requests * swarm: update metrics flags names. remove redundant Timer. * swarm: rename method for periodically updating gauges * swarm: finalise metrics after feedback * swarm/network: always init kad metrics containers * swarm/network: off-by-one index in metrics containers * swarm, metrics: resolved conflicts
* swarm/storage: pyramid chunker re-write (#14382)Zahoor Mohamed2017-09-221-1/+1
|
* swarm: fix megacheck warningsEgon Elbre2017-08-141-3/+1
|
* swarm/storage: release chunk storage after stop swarm (#3651)Maksim2017-02-091-0/+5
| | | closes #3650
* swarm: plan bee for content storage and distribution on web3ΞTHΞЯSPHΞЯΞ2016-08-311-0/+74
This change imports the Swarm protocol codebase. Compared to the 'swarm' branch, a few mostly cosmetic changes had to be made: * The various redundant log message prefixes are gone. * All files now have LGPLv3 license headers. * Minor code changes were needed to please go vet and make the tests pass on Windows. * Further changes were required to adapt to the go-ethereum develop branch and its new Go APIs. Some code has not (yet) been brought over: * swarm/cmd/bzzhash: will reappear as cmd/bzzhash later * swarm/cmd/bzzup.sh: will be reimplemented in cmd/bzzup * swarm/cmd/makegenesis: will reappear somehow * swarm/examples/album: will move to a separate repository * swarm/examples/filemanager: ditto * swarm/examples/files: will not be merged * swarm/test/*: will not be merged * swarm/services/swear: will reappear as contracts/swear when needed