rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

Set optimize_filters_for_memory by default

Open pdillinger opened this issue 1 year ago • 1 comments

Summary: ... when malloc_usable_size is known at compile time to be available. This feature has been around for a couple of years and users haven't reported any problems with it.

I've avoided using #ifdef in the public header to avoid a technical ODR violation, as it might be difficult for some users to ensure RocksDB and their code using RocksDB are built with the same macro definitions.

In avoiding that problem, I took the opportunity to fix another existing case with info_log_level.

Test Plan: unit tests updated, already in crash test. Some unit tests are expecting specific behaviors of optimize_filters_for_memory=false and we now need to bake that in.

pdillinger avatar Feb 23 '24 19:02 pdillinger

@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Feb 23 '24 19:02 facebook-github-bot

@pdillinger has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot avatar Feb 27 '24 22:02 facebook-github-bot

@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Feb 27 '24 22:02 facebook-github-bot

@pdillinger has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot avatar Feb 27 '24 23:02 facebook-github-bot

@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Feb 27 '24 23:02 facebook-github-bot

Hmm, I have upset the Java gods by making the default value depend on a constant (derived from a preprocessor define)

pdillinger avatar Feb 28 '24 06:02 pdillinger

@pdillinger has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot avatar Apr 29 '24 20:04 facebook-github-bot

@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Apr 29 '24 20:04 facebook-github-bot

@pdillinger has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot avatar Apr 29 '24 22:04 facebook-github-bot

@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Apr 29 '24 22:04 facebook-github-bot

@pdillinger merged this pull request in facebook/rocksdb@45c105104bad2027edf6d2a668ffbace397e1f8a.

facebook-github-bot avatar Apr 30 '24 15:04 facebook-github-bot