Skip to content

Commit

Permalink
Enable DoublySkiplist by default (tikv#5430)
Browse files Browse the repository at this point in the history
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
  • Loading branch information
Little-Wallace committed Sep 11, 2019
1 parent 972fb7d commit f6aab53
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/config.rs
Expand Up @@ -390,7 +390,7 @@ impl Default for DefaultCfConfig {
hard_pending_compaction_bytes_limit: ReadableSize::gb(256),
prop_size_index_distance: DEFAULT_PROP_SIZE_INDEX_DISTANCE,
prop_keys_index_distance: DEFAULT_PROP_KEYS_INDEX_DISTANCE,
enable_doubly_skiplist: false,
enable_doubly_skiplist: true,
titan: TitanCfConfig::default(),
}
}
Expand Down Expand Up @@ -456,7 +456,7 @@ impl Default for WriteCfConfig {
hard_pending_compaction_bytes_limit: ReadableSize::gb(256),
prop_size_index_distance: DEFAULT_PROP_SIZE_INDEX_DISTANCE,
prop_keys_index_distance: DEFAULT_PROP_KEYS_INDEX_DISTANCE,
enable_doubly_skiplist: false,
enable_doubly_skiplist: true,
titan,
}
}
Expand Down Expand Up @@ -524,7 +524,7 @@ impl Default for LockCfConfig {
hard_pending_compaction_bytes_limit: ReadableSize::gb(256),
prop_size_index_distance: DEFAULT_PROP_SIZE_INDEX_DISTANCE,
prop_keys_index_distance: DEFAULT_PROP_KEYS_INDEX_DISTANCE,
enable_doubly_skiplist: false,
enable_doubly_skiplist: true,
titan,
}
}
Expand Down Expand Up @@ -582,7 +582,7 @@ impl Default for RaftCfConfig {
hard_pending_compaction_bytes_limit: ReadableSize::gb(256),
prop_size_index_distance: DEFAULT_PROP_SIZE_INDEX_DISTANCE,
prop_keys_index_distance: DEFAULT_PROP_KEYS_INDEX_DISTANCE,
enable_doubly_skiplist: false,
enable_doubly_skiplist: true,
titan,
}
}
Expand Down Expand Up @@ -850,7 +850,7 @@ impl Default for RaftDefaultCfConfig {
hard_pending_compaction_bytes_limit: ReadableSize::gb(256),
prop_size_index_distance: DEFAULT_PROP_SIZE_INDEX_DISTANCE,
prop_keys_index_distance: DEFAULT_PROP_KEYS_INDEX_DISTANCE,
enable_doubly_skiplist: false,
enable_doubly_skiplist: true,
titan: TitanCfConfig::default(),
}
}
Expand Down
10 changes: 5 additions & 5 deletions tests/integrations/config/mod.rs
Expand Up @@ -239,7 +239,7 @@ fn test_serde_custom_tikv_config() {
},
prop_size_index_distance: 4000000,
prop_keys_index_distance: 40000,
enable_doubly_skiplist: true,
enable_doubly_skiplist: false,
},
writecf: WriteCfConfig {
block_size: ReadableSize::kb(12),
Expand Down Expand Up @@ -292,7 +292,7 @@ fn test_serde_custom_tikv_config() {
},
prop_size_index_distance: 4000000,
prop_keys_index_distance: 40000,
enable_doubly_skiplist: false,
enable_doubly_skiplist: true,
},
lockcf: LockCfConfig {
block_size: ReadableSize::kb(12),
Expand Down Expand Up @@ -345,7 +345,7 @@ fn test_serde_custom_tikv_config() {
},
prop_size_index_distance: 4000000,
prop_keys_index_distance: 40000,
enable_doubly_skiplist: false,
enable_doubly_skiplist: true,
},
raftcf: RaftCfConfig {
block_size: ReadableSize::kb(12),
Expand Down Expand Up @@ -398,7 +398,7 @@ fn test_serde_custom_tikv_config() {
},
prop_size_index_distance: 4000000,
prop_keys_index_distance: 40000,
enable_doubly_skiplist: false,
enable_doubly_skiplist: true,
},
titan: TitanDBConfig {
enabled: true,
Expand Down Expand Up @@ -473,7 +473,7 @@ fn test_serde_custom_tikv_config() {
titan: TitanCfConfig::default(),
prop_size_index_distance: 4000000,
prop_keys_index_distance: 40000,
enable_doubly_skiplist: false,
enable_doubly_skiplist: true,
},
};
value.storage = StorageConfig {
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/config/test-custom.toml
Expand Up @@ -216,7 +216,7 @@ soft-pending-compaction-bytes-limit = "12GB"
hard-pending-compaction-bytes-limit = "12GB"
prop-size-index-distance = 4000000
prop-keys-index-distance = 40000
enable-doubly-skiplist = true
enable-doubly-skiplist = false

[rocksdb.defaultcf.titan]
min-blob-size = "2018B"
Expand Down

0 comments on commit f6aab53

Please sign in to comment.