]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileStore: sync object_map when we syncfs 4718/head
authorSamuel Just <sjust@redhat.com>
Fri, 1 May 2015 17:37:22 +0000 (10:37 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 29 May 2015 17:53:32 +0000 (10:53 -0700)
commit517659b1d0ec236a559f0f966c271297f4866ab5
tree602c3605e6aa953f34d706d9701d72bd0e670776
parent361f766c3b70931d711889dbb35c9cbd839f2bb8
FileStore: sync object_map when we syncfs

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>
src/os/FileStore.cc