openethereum/ethcore
David 0d3423cbe0
Use a lock instead of atomics for snapshot Progress (#11197)
* WIP. Typos and logging.

* Format todos

* Pause pruning while a snapshot is under way
Logs, docs and todos

* Allocate memory for the full chunk

* Name snapshotting threads

* Ensure `taking_snapshot` is set to false whenever and however `take_snapshot`returns
Rename `take_at` to `request_snapshot_at`
Cleanup

* Let "in_progress" deletion fail
Fix tests

* Just use an atomic

* Review grumbles

* Finish the sentence

* Resolve a few todos and clarify comments.

* Calculate progress rate since last update

* Lockfile

* Fix tests

* typo

* Reinstate default snapshotting frequency
Cut down on the logging noise

* Use a lock instead of atomics for snapshot Progress

* Update ethcore/types/src/snapshot.rs

Co-Authored-By: Andronik Ordian <write@reusable.software>

* Avoid truncating cast
Cleanup
2019-10-28 18:24:45 +01:00
..
account-db Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
account-state Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
benches Fix ethcore/benches build. (#10964) 2019-08-13 15:27:28 +02:00
block-reward Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
blockchain Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
builtin Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
call-contract Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
client-traits Change how RPCs eth_call and eth_estimateGas handle "Pending" (#11127) 2019-10-11 15:54:36 +02:00
db Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
engine Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
engines Step duration map configuration parameter ported from the POA Network fork (#10902) 2019-10-28 14:39:18 +01:00
evm Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
executive-state Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
light [dependencies] bump rand 0.7 (#11022) 2019-10-18 15:12:16 +02:00
machine Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
node-filter Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
pod Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
private-tx Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
res TxPermissions ver 3: gas price & data (#11170) 2019-10-18 12:12:06 +02:00
service Pause pruning while snapshotting (#11178) 2019-10-24 16:46:32 +02:00
snapshot Use a lock instead of atomics for snapshot Progress (#11197) 2019-10-28 18:24:45 +01:00
spec [export hardcoded sync]: use debug for H256 (#11204) 2019-10-25 18:12:14 +02:00
src Use a lock instead of atomics for snapshot Progress (#11197) 2019-10-28 18:24:45 +01:00
state-db Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
sync Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
trace Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
trie-vm-factories Update to latest trie version. (#10972) 2019-08-15 15:36:48 +02:00
types Use a lock instead of atomics for snapshot Progress (#11197) 2019-10-28 18:24:45 +01:00
verification Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
vm Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
wasm Update ethereum types to 0.8.0 version (#11139) 2019-10-08 14:18:44 +02:00
Cargo.toml Pause pruning while snapshotting (#11178) 2019-10-24 16:46:32 +02:00