Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix segmentation fault caused by #1961 #2029

Conversation

maysamyabandeh
Copy link
Contributor

Summary:
Fixes #1961 which causes a segfault when filter_policy is nullptr and both
pin_l0_filter_and_index_blocks_in_cache/cache_index_and_filter_blocks
are set.

Test Plan:
TEST_TMPDIR=/data/rate_limit_bench/ ./db_bench -benchmarks=fillrandom
-pin_l0_filter_and_index_blocks_in_cache=true
-cache_index_and_filter_blocks=true

Reviewers:

Subscribers:

Tasks:

Tags:

Blame Revision:

Summary:
Fixes facebook#1961 which causes a segfault when filter_policy is nullptr and both
pin_l0_filter_and_index_blocks_in_cache/cache_index_and_filter_blocks
are set.

Test Plan:
TEST_TMPDIR=/data/rate_limit_bench/ ./db_bench -benchmarks=fillrandom
-pin_l0_filter_and_index_blocks_in_cache=true
-cache_index_and_filter_blocks=true

Reviewers:

Subscribers:

Tasks:

Tags:

Blame Revision:
Copy link
Contributor

@ajkr ajkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

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

Successfully merging this pull request may close these issues.

None yet

5 participants