Skip to content
Snippets Groups Projects
Commit de6eb419 authored by Ashwin's avatar Ashwin
Browse files

make MergeFolder local

parent b2d77d9f
Branches
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ func equalValue(a, b interface{}) bool { ...@@ -83,7 +83,7 @@ func equalValue(a, b interface{}) bool {
bytes.Compare(x.ValueBytes(), y.ValueBytes()) == 0) bytes.Compare(x.ValueBytes(), y.ValueBytes()) == 0)
} }
func MergeFolders(mergePath, destPath string) { func mergeFolders(mergePath, destPath string) {
dirList, err := ioutil.ReadDir(mergePath) dirList, err := ioutil.ReadDir(mergePath)
if err != nil { if err != nil {
glog.Fatal("Cannot open stores directory") glog.Fatal("Cannot open stores directory")
...@@ -167,5 +167,5 @@ func main() { ...@@ -167,5 +167,5 @@ func main() {
glog.Fatal("No Directory specified") glog.Fatal("No Directory specified")
} }
MergeFolders(*stores, *destinationDB) mergeFolders(*stores, *destinationDB)
} }
...@@ -81,7 +81,7 @@ func TestMergeFolders(t *testing.T) { ...@@ -81,7 +81,7 @@ func TestMergeFolders(t *testing.T) {
ps1.Close() ps1.Close()
ps2.Close() ps2.Close()
MergeFolders(rootDir, destDir) mergeFolders(rootDir, destDir)
var opt *rocksdb.Options var opt *rocksdb.Options
var ropt *rocksdb.ReadOptions var ropt *rocksdb.ReadOptions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment