No snapshotting by default (#11814)
This commit is contained in:
@@ -102,8 +102,8 @@ const MAX_SNAPSHOT_SUBPARTS: usize = 256;
|
||||
/// Configuration for the Snapshot service
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct SnapshotConfiguration {
|
||||
/// If `true`, no periodic snapshots will be created
|
||||
pub no_periodic: bool,
|
||||
/// Enable creation of periodic snapshots
|
||||
pub enable: bool,
|
||||
/// Number of threads for creating snapshots
|
||||
pub processing_threads: usize,
|
||||
}
|
||||
@@ -111,7 +111,7 @@ pub struct SnapshotConfiguration {
|
||||
impl Default for SnapshotConfiguration {
|
||||
fn default() -> Self {
|
||||
SnapshotConfiguration {
|
||||
no_periodic: false,
|
||||
enable: false,
|
||||
processing_threads: ::std::cmp::max(1, num_cpus::get_physical() / 2),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user