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

FileStore: sync object_map when we syncfs #4718

Merged
merged 1 commit into from
Jun 4, 2015

Conversation

athanatos
Copy link
Contributor

This way, even if leveldb/rocksdb is on another filesystem/disk,
it will still be synced before trimming the journal. Note, this
patch only syncs the object_map in the !backend->can_checkpoint()
case since if the backend can checkpoint, the checkpoint must
also capture the object_map since we have not been setting replay
guards in the object_map.

Signed-off-by: Samuel Just sjust@redhat.com

@yuyuyu101
Copy link
Member

Nice!

@athanatos
Copy link
Contributor Author

Indeed, updating and retesting.

This way, even if leveldb/rocksdb is on another filesystem/disk,
it will still be synced before trimming the journal.  Note, this
patch only syncs the object_map in the !backend->can_checkpoint()
case since if the backend can checkpoint, the checkpoint must
also capture the object_map since we have not been setting replay
guards in the object_map.

Signed-off-by: Samuel Just <sjust@redhat.com>
athanatos pushed a commit that referenced this pull request Jun 4, 2015
FileStore: sync object_map when we syncfs

Reviewed-by: Kefu Chai <kchai@redhat.com>
@athanatos athanatos merged commit e5b1890 into ceph:master Jun 4, 2015
@athanatos athanatos deleted the wip-sync-omap branch June 4, 2015 18:24
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