changeset 304:d903e81666e7

version_set: Make Compaction::new public
author Lewin Bormann <lbo@spheniscida.de>
date Wed, 27 Sep 2017 20:35:54 +0200
parents 26f7cbdfe6c6
children 08c87265d313
files src/version_set.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version_set.rs	Wed Sep 27 05:51:33 2017 +0000
+++ b/src/version_set.rs	Wed Sep 27 20:35:54 2017 +0200
@@ -39,7 +39,7 @@
 
 impl Compaction {
     // Note: opt.cmp should be the user-supplied or default comparator (not an InternalKeyCmp).
-    fn new(opt: &Options, level: usize, input: Option<Shared<Version>>) -> Compaction {
+    pub fn new(opt: &Options, level: usize, input: Option<Shared<Version>>) -> Compaction {
         Compaction {
             level: level,
             max_file_size: opt.max_file_size,