]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: skip redundant flush before journal segment trim
authorSage Weil <sage.weil@dreamhost.com>
Thu, 24 Mar 2011 03:37:04 +0000 (20:37 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Thu, 24 Mar 2011 16:29:00 +0000 (09:29 -0700)
commita56a8133ab332fe1f771fef39f9314d80368aa4f
tree3fce2965063a3bf1c0e5abbb750daa475e12eb30
parent9e6c80e530d2cb4d25a0e754e0b75691cba863f1
mds: skip redundant flush before journal segment trim

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>
src/mds/journal.cc