Skip to content

Commit 4c66b89

Browse files
author
HuangYi
committed
cleanup
1 parent 95d74ce commit 4c66b89

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

versiondb/tsrocksdb/opts.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ func OpenVersionDB(dir string) (*grocksdb.DB, *grocksdb.ColumnFamilyHandle, erro
6767
// OpenVersionDBForReadOnly open versiondb in readonly mode
6868
func OpenVersionDBForReadOnly(dir string, errorIfWalFileExists bool) (*grocksdb.DB, *grocksdb.ColumnFamilyHandle, error) {
6969
opts := grocksdb.NewDefaultOptions()
70-
opts.SetCreateIfMissing(true)
71-
opts.SetCreateIfMissingColumnFamilies(true)
7270
db, cfHandles, err := grocksdb.OpenDbForReadOnlyColumnFamilies(
7371
opts, dir, []string{"default", VersionDBCFName},
7472
[]*grocksdb.Options{opts, NewVersionDBOpts(false)},

0 commit comments

Comments
 (0)