aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/ldbstore.go
Commit message (Collapse)AuthorAgeFilesLines
* cmd/swarm, swarm: LocalStore storage integrationJanoš Guljaš2019-05-101-1082/+0
|
* swarm/storage: add comparison towards leveldb.ErrNotFound (#19243)Anton Evangelatov2019-03-091-1/+4
| | | | | | * swarm/storage: add comparison towards leveldb.ErrNotFound * swarm/storage: wrap leveldb ErrNotFound
* swarm/chunk: move chunk related declarations to chunk package (#19170)Janoš Guljaš2019-02-261-6/+8
|
* swarm/storage: fix loop bound for database cleanup (#19085)Matthew Halpern2019-02-211-2/+2
| | | | | | The current loop continuation condition is always true as a uint8 is always being checked whether it is less than 255 (its maximum value). Since the loop starts with the value 1, the loop termination can be guarranteed to exit once the value overflows to 0.
* swarm/storage: fix influxdb gc metrics report (#19102)Elad2019-02-151-5/+3
|
* swarm: fix network/stream data races (#19051)Janoš Guljaš2019-02-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * swarm/network/stream: newStreamerTester cleanup only if err is nil * swarm/network/stream: raise newStreamerTester waitForPeers timeout * swarm/network/stream: fix data races in GetPeerSubscriptions * swarm/storage: prevent data race on LDBStore.batchesC https://github.com/ethersphere/go-ethereum/issues/1198#issuecomment-461775049 * swarm/network/stream: fix TestGetSubscriptionsRPC data race https://github.com/ethersphere/go-ethereum/issues/1198#issuecomment-461768477 * swarm/network/stream: correctly use Simulation.Run callback https://github.com/ethersphere/go-ethereum/issues/1198#issuecomment-461783804 * swarm/network: protect addrCountC in Kademlia.AddrCountC function https://github.com/ethersphere/go-ethereum/issues/1198#issuecomment-462273444 * p2p/simulations: fix a deadlock calling getRandomNode with lock https://github.com/ethersphere/go-ethereum/issues/1198#issuecomment-462317407 * swarm/network/stream: terminate disconnect goruotines in tests * swarm/network/stream: reduce memory consumption when testing data races * swarm/network/stream: add watchDisconnections helper function * swarm/network/stream: add concurrent counter for tests * swarm/network/stream: rename race/norace test files and use const * swarm/network/stream: remove watchSim and its panic * swarm/network/stream: pass context in watchDisconnections * swarm/network/stream: add concurrent safe bool for watchDisconnections * swarm/storage: fix LDBStore.batchesC data race by not closing it
* swarm: Debug API and HasChunks() API endpoint (#18980)holisticode2019-02-071-0/+12
|
* swarm: remove unused/dead code (#18351)Anton Evangelatov2018-12-241-18/+2
|
* swarm/storage: Batched database migration (#18113)lash2018-11-151-28/+95
|
* swarm/storage: fix garbage collector index skew (#18080)Ferenc Szabo2018-11-131-38/+84
| | | | | | | | | | | | | 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-16/+32
| | | | | | | 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: clean up unused private types and functions (#17989)Ferenc Szabo2018-10-271-20/+0
| | | | | | | | | | | * swarm: clean up unused private types and functions Those that were identified by code inspection tool. * swarm/storage: move/add Proximity GoDoc from deleted private function The mentioned proximity() private function was deleted in: 1ca8fc1e6fa0ab4ab1aaca06d6fb32e173cd5f2f
* swarm/storage: Add accessCnt for GC (#17845)lash2018-10-121-100/+182
|
* swarm: schemas and migrations (#17813)Anton Evangelatov2018-10-031-4/+29
|
* all: simplify s[:] to s where s is a slice (#17673)Emil2018-09-151-5/+5
|
* swarm: Chunk refactor (#17659)Balint Gabor2018-09-131-128/+182
| | | | | | 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/storage: remove redundant increments for dataIdx and entryCnt (#17484)Anton Evangelatov2018-09-121-6/+19
| | | | | | | | * swarm/storage: remove redundant increments for dataIdx and entryCnt * swarm/storage: add Delete to LDBStore * swarm/storage: wait for garbage collection
* swarm/storage: added metrics for db entry count (#17589)Elad2018-09-061-0/+6
|
* swarm/storage: cleanup task - remove bigger chunks (#17424)Anton Evangelatov2018-08-201-22/+45
|
* swarm: integrate OpenTracing; propagate ctx to internal APIs (#17169)Anton Evangelatov2018-07-131-3/+4
| | | | | | * swarm: propagate ctx, enable opentracing * swarm/tracing: log error when tracing is misconfigured
* swarm: network rewrite mergeethersphere2018-06-221-0/+771