-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
db.latest_era().unwrap_or(0) | ||
let mut client_path = dirs.client_path(genesis_hash, fork_name, *i); | ||
client_path.push("CURRENT"); | ||
fs::metadata(&client_path).and_then(|m| m.modified()).ok() | ||
}).unwrap() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fail if all paths result in Err -> None
should probably be unwrap_or_default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
algo_types
can't be empty so this can't panic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, sorry. I thought that there is filter
being done there.
isn't WAL meant to be a failsafe in case of bad shutdown? Does limiting the size preserve this behavior? |
64MB should be enough for a failsafe. I've tested for unexpected shutdowns on a linux VM and it appears to be working fine. |
* Limit WAL size * Check pruning by db modification date (#1924)
* Fix several RPCs (#1926) * Fix up pending receipts details. * Add support for additional params and registry over RPC. * Fix tests. * Add test, additional fix. Fixes #1932. * Fix up tests. * Fix test. * Fix test. * DB WAL size limit (#1935) * Limit WAL size * Check pruning by db modification date (#1924) * Cache address hash (#1943) * ECIES without MAC (#1948) * Use random IV for ECIES AES * ECIES encrypt/decrypt for a single message * Derive IV from shared secret * Apply settings to column families * fixed #1933 (#1979) * Fixed neighbours collection (#1996) * dapps-hosts configuration * Disabled counter check * always process trie death row on commit, add more tracing * fixed transaction addresses mapping, fixes #1971 * simplified iterator * v1.3.1 * v1.3.1
Set WAL size limit to 64mb
Also includes DB detection fix made in the beta branch.