mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
mon: add MonitorStore::sync()
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
cfe211af13
commit
19ea31268b
@ -420,3 +420,9 @@ int MonitorStore::put_bl_sn_map(const char *a,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void MonitorStore::sync()
|
||||
{
|
||||
int dirfd = ::open(dir.c_str(), O_RDONLY);
|
||||
sync_filesystem(dirfd);
|
||||
::close(dirfd);
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ public:
|
||||
int mkfs(); // wipe
|
||||
int mount();
|
||||
int umount();
|
||||
void sync();
|
||||
|
||||
// ints (stored as ascii)
|
||||
version_t get_int(const char *a, const char *b=0);
|
||||
|
Loading…
Reference in New Issue
Block a user