openethereum/parity
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
..
cli cli: update usage and version headers (#10924) 2019-09-05 16:07:26 +02:00
db fix compile warnings (#10993) 2019-08-27 17:29:33 +02:00
light_helpers fix compile warnings (#10993) 2019-08-27 17:29:33 +02:00
logger Update kvdb, kvdb-rocksdb and h2 (#11091) 2019-09-27 23:29:14 +02:00
account_utils.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
account.rs Upgrade to parity-crypto 0.4 (#10650) 2019-05-28 07:50:10 +02:00
blockchain.rs [informant]: MillisecondDuration -> as_millis() (#11211) 2019-10-28 15:03:28 +01:00
cache.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
configuration.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
deprecated.rs whisper is no longer a part of parity-ethereum repo (#10855) 2019-07-12 14:15:30 +02:00
export_hardcoded_sync.rs [export hardcoded sync]: use debug for H256 (#11204) 2019-10-25 18:12:14 +02:00
helpers.rs [ethcore]: reduce re-exports (#11059) 2019-09-16 17:12:21 +02:00
informant.rs Use a lock instead of atomics for snapshot Progress (#11197) 2019-10-28 18:24:45 +01:00
ipfs.rs fix compile warnings (#10993) 2019-08-27 17:29:33 +02:00
lib.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
main.rs parity/main.rs uses eprintln instead of raw stderr interface (#10427) 2019-02-27 11:41:03 +03:00
modules.rs Extract snapshot to own crate (#11010) 2019-09-03 11:29:25 +02:00
params.rs xDai chain support and nodes list update (#10989) 2019-08-29 09:33:33 +02:00
presale.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
rpc_apis.rs Extract snapshot to own crate (#11010) 2019-09-03 11:29:25 +02:00
rpc.rs update jsonrpc to 12.0 (#10841) 2019-07-05 16:24:23 +08:00
run.rs Pause pruning while snapshotting (#11178) 2019-10-24 16:46:32 +02:00
secretstore.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
signer.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
snapshot_cmd.rs Use a lock instead of atomics for snapshot Progress (#11197) 2019-10-28 18:24:45 +01:00
stratum.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
upgrade.rs Add message to IO errors (#10324) 2019-02-18 20:39:38 +03:00
user_defaults.rs Extract the Engine trait (#10958) 2019-08-15 17:59:22 +02:00