Skip to content

add Options.SetAllowConcurrentMemtableWrites() accessor#1

Merged
yusefnapora merged 1 commit into
masterfrom
yn-concurrent-writes-option
Jan 27, 2017
Merged

add Options.SetAllowConcurrentMemtableWrites() accessor#1
yusefnapora merged 1 commit into
masterfrom
yn-concurrent-writes-option

Conversation

@yusefnapora

Copy link
Copy Markdown

The 5.0.2 rocksdb release added an assertion that will throw an exception if the memtable doesn't support concurrent writes but the allow_concurrent_memtable_write is set to its default value of true.

Sadly, if you call Options.OptimizeForPointLookup, it changes the memtable implementation to one that doesn't support concurrent writes, and since gorocksdb doesn't currently expose a setter for allow_concurrent_memtable_write there's no way to use OptimizeForPointLookup without crashing.

This is especially relevant to us because the embedded rocksdb build (from the cockroachdb c-rocksdb) repo just updated to 5.0.2, which is great because it fixed tecbot#71.

Anyway, this commit just adds a SetAllowConcurrentMemtableWrites(allow bool) method to the Options struct, and a couple comments to let people know they should use it with OptimizeForPointLookup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Embedded version no longer installs

1 participant