Skip to content

Commit

Permalink
Remove max_total_wal_size option
Browse files Browse the repository at this point in the history
  • Loading branch information
aalda committed Apr 2, 2019
1 parent 126eead commit f8a8bae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion raftwal/raftrocks/rocksdb_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func New(options Options) (*RocksDBStore, error) {
globalOpts := rocksdb.NewDefaultOptions()
globalOpts.SetCreateIfMissing(true)
globalOpts.SetCreateIfMissingColumnFamilies(true)
globalOpts.SetMaxTotalWalSize(3 * 256 * 1024 * 1024) // write_buffer_size (256MB) * 3

// stable store options
stableBbto := rocksdb.NewDefaultBlockBasedTableOptions()
Expand Down
1 change: 0 additions & 1 deletion storage/rocks/rocksdb_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ func NewRocksDBStoreOpts(opts *Options) (*RocksDBStore, error) {
globalOpts := rocksdb.NewDefaultOptions()
globalOpts.SetCreateIfMissing(true)
globalOpts.SetCreateIfMissingColumnFamilies(true)
globalOpts.SetMaxTotalWalSize(3 * 256 * 1024 * 1024) // 256MB * 3
//globalOpts.SetMaxOpenFiles()
globalOpts.SetEnv(env)
blockCache := rocksdb.NewDefaultLRUCache(6 * 1024 * 1024 * 1024) // 6GB
Expand Down

0 comments on commit f8a8bae

Please sign in to comment.