Back in olden times when we would would wait for acks for some journal
writes, we did an extra wait_for_safe() before discarding a journal segment
to make sure anything being discarded was safely committed in newers
segments. These days mds_log_unsafe is always false (and
journaler_safe is true), so we can skip this check.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
// audit handling of anchor transactions?
// once we are otherwise trimmable, make sure journal is fully safe on disk.
- if (!gather) {
+ if (g_conf.mds_log_unsafe && !gather) {
if (!trimmable_at)
trimmable_at = mds->mdlog->get_write_pos();