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 a bug, c api, if enable inplace_update_support, and use create sn… #9471

Conversation

shenxingwuying
Copy link

c api release snapshot will core dump when enable inplace_update_support and create snapshot

Copy link
Contributor

@riversand963 riversand963 left a comment

Choose a reason for hiding this comment

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

Thanks @shenxingwuying for the fix.
Once ready to merge, please add an entry to "Behavior changes" in HISTORY.md.
The PR description will be the final commit message. A clear and concise description will be appreciated.

db/c.cc Outdated Show resolved Hide resolved
db/c.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@riversand963 riversand963 left a comment

Choose a reason for hiding this comment

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

Thanks @shenxingwuying for the PR.
Mostly LGTM with a few minor comments.

db/db_inplace_update_test.cc Outdated Show resolved Hide resolved
db/db_impl/db_impl.cc Outdated Show resolved Hide resolved
db/c_test.c Outdated Show resolved Hide resolved
db/c_test.c Outdated Show resolved Hide resolved
@riversand963
Copy link
Contributor

btw, can you rebase to latest main so that the CIs can run?

@facebook-github-bot
Copy link
Contributor

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

duyuqi added 2 commits March 21, 2022 22:01
Summary:
This bug meets two conditions:
- the option inplace_update_support is enabled
- users use Snapshot

Because get snapshot will be nullptr,
and then release a nullptr snapshot
will core dump.
@shenxingwuying shenxingwuying force-pushed the dev/inplace_and_release_snapshot branch from 00daaaf to 1952ae7 Compare March 21, 2022 14:02
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

ajkr pushed a commit that referenced this pull request Mar 29, 2022
#9471)

Summary:
c api release snapshot will core dump when enable inplace_update_support and create snapshot

Pull Request resolved: #9471

Reviewed By: akankshamahajan15

Differential Revision: D34965103

Pulled By: riversand963

fbshipit-source-id: c3aeeb9ea7126c2eda1466102794fecf57b6ab77
ajkr pushed a commit that referenced this pull request Mar 29, 2022
#9471)

Summary:
c api release snapshot will core dump when enable inplace_update_support and create snapshot

Pull Request resolved: #9471

Reviewed By: akankshamahajan15

Differential Revision: D34965103

Pulled By: riversand963

fbshipit-source-id: c3aeeb9ea7126c2eda1466102794fecf57b6ab77
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.

3 participants