]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: do not trim segments after open file table commit
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 27 Aug 2024 21:07:06 +0000 (17:07 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 25 Sep 2024 19:42:26 +0000 (15:42 -0400)
commit98b7402b2723544d4421f65bd2c38bfb6aadfb54
tree670a084dfecdfcffc339bc93d535f37b36d48f47
parentb2711f655a7c9e45d6cf2b31919d0c20d96d52f8
mds: do not trim segments after open file table commit

Previously, the trimming of expired segments would only occur if the open file
table's committed sequence number is past the segment to be trimmed. This is
now part of the expiry checks so it's no longer necessary to restart trimming
when the open file table commit completes.

Furthermore, this was confusing to `flush journal` as it was waiting for the
journal head write but the open file table commit already triggered the trim.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDLog.cc