Skip to content

Commit

Permalink
Use String() for default table
Browse files Browse the repository at this point in the history
  • Loading branch information
aalda committed Apr 5, 2019
1 parent 3d2625d commit 3d571ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion raftwal/raftrocks/rocksdb_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const (
func (t table) String() string {
var s string
switch t {
case defaultTable:
s = "default"
case stableTable:
s = "stable"
case logTable:
Expand Down Expand Up @@ -110,7 +112,7 @@ func New(options Options) (*RocksDBStore, error) {
// we need two column families, one for stable store and one for log store:
// stable : used for storing key configurations.
// log : used for storing logs in a durable fashion.
cfNames := []string{"default", stableTable.String(), logTable.String()}
cfNames := []string{defaultTable.String(), stableTable.String(), logTable.String()}

defaultOpts := rocksdb.NewDefaultOptions()

Expand Down

0 comments on commit 3d571ac

Please sign in to comment.