From 4c66b89d63215f62d5cfbf766ffb4fcfb2885e12 Mon Sep 17 00:00:00 2001 From: HuangYi Date: Tue, 12 Nov 2024 09:57:33 +0800 Subject: [PATCH] cleanup --- versiondb/tsrocksdb/opts.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/versiondb/tsrocksdb/opts.go b/versiondb/tsrocksdb/opts.go index 96593d79b9..8218cd9692 100644 --- a/versiondb/tsrocksdb/opts.go +++ b/versiondb/tsrocksdb/opts.go @@ -67,8 +67,6 @@ func OpenVersionDB(dir string) (*grocksdb.DB, *grocksdb.ColumnFamilyHandle, erro // OpenVersionDBForReadOnly open versiondb in readonly mode func OpenVersionDBForReadOnly(dir string, errorIfWalFileExists bool) (*grocksdb.DB, *grocksdb.ColumnFamilyHandle, error) { opts := grocksdb.NewDefaultOptions() - opts.SetCreateIfMissing(true) - opts.SetCreateIfMissingColumnFamilies(true) db, cfHandles, err := grocksdb.OpenDbForReadOnlyColumnFamilies( opts, dir, []string{"default", VersionDBCFName}, []*grocksdb.Options{opts, NewVersionDBOpts(false)},