aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/ldbstore.go
Commit message (Collapse)AuthorAgeFilesLines
* Rebrand as tangerine-network/go-tangerineWei-Ning Huang2019-09-171-4/+4
|
* Change import go github.com/dexon-foundation/dexonWei-Ning Huang2019-06-121-4/+4
|
* swarm/storage: fix influxdb gc metrics report (#19102)Elad2019-02-191-5/+3
| | | | (cherry picked from commit 5b8ae7885eaa033aaf1fb1d5959b7f1c86761d6d)
* swarm: fix network/stream data races (#19051)Janoš Guljaš2019-02-191-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 (cherry picked from commit 3fd6db2bf63ce90232de445c7f33943406a5e634)
* swarm: Debug API and HasChunks() API endpoint (#18980)holisticode2019-02-191-0/+12
| | | | (cherry picked from commit 41597c2856d6ac7328baca1340c3e36ab0edd382)
* 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