We need to sync the object_map too. We can _almost_ check to see if there
are keys for the object and only do it then, except that they may have
existed previously and then been deleted.
So, always sync. leveldb is reasonably nice about this... it should just
be another fsync.
Signed-off-by: Sage Weil <sage@newdream.net>
// first make sure the previous operation commits
::fsync(fd);
+ // sync object_map too. even if this object has a header or keys,
+ // it have had them in the past and then removed them, so always
+ // sync.
+ object_map->sync();
+
// then record that we did it
bufferlist v(40);
::encode(spos, v);