Commit 166b17f3 authored by Cholerae Hu's avatar Cholerae Hu

Options: add filter is none assert

Signed-off-by: 's avatarCholerae Hu <huyingqian@pingcap.com>
parent 551a7d03
......@@ -320,8 +320,8 @@ impl Default for Options {
}
impl Clone for Options {
// Only copy DBOptions.
fn clone(&self) -> Self {
assert!(self.filter.is_none());
unsafe {
let opts = crocksdb_ffi::crocksdb_options_copy(self.inner);
assert!(!opts.is_null());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment