Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Fix NotifyOnFlushCompleted() for atomic flush (#8585) #34

Merged

Conversation

empiredan
Copy link
Contributor

Summary:
PR facebook/rocksdb#5908 added flush_jobs_info_ to FlushJob to make sure
OnFlushCompleted() is called after committing flush results to
MANIFEST. However, flush_jobs_info_ is not updated in atomic
flush, causing NotifyOnFlushCompleted() to skip OnFlushCompleted().

This PR fixes this, in a similar way to facebook/rocksdb#5908 that handles regular flush.

Pull Request resolved: facebook/rocksdb#8585

Test Plan: make check

Reviewed By: jay-zhuang

Differential Revision: D29913720

Pulled By: riversand963

fbshipit-source-id: 4ff023c98372fa2c93188d4a5c8a4e9ffa0f4dda

Summary:
PR facebook/rocksdb#5908 added `flush_jobs_info_` to `FlushJob` to make sure
`OnFlushCompleted()` is called after committing flush results to
MANIFEST. However, `flush_jobs_info_` is not updated in atomic
flush, causing `NotifyOnFlushCompleted()` to skip `OnFlushCompleted()`.

This PR fixes this, in a similar way to facebook/rocksdb#5908 that handles regular flush.

Pull Request resolved: facebook/rocksdb#8585

Test Plan: make check

Reviewed By: jay-zhuang

Differential Revision: D29913720

Pulled By: riversand963

fbshipit-source-id: 4ff023c98372fa2c93188d4a5c8a4e9ffa0f4dda
Copy link
Member

@acelyc111 acelyc111 left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

3 participants