From 248a21ce866f30ceaa9bcd1dcb988cc1d2ce2685 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 22 Jul 2008 13:28:19 -0700 Subject: [PATCH] filestore: close journal on umount --- src/os/JournalingObjectStore.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/os/JournalingObjectStore.h b/src/os/JournalingObjectStore.h index 013a5eb001e7..27cdf9024f33 100644 --- a/src/os/JournalingObjectStore.h +++ b/src/os/JournalingObjectStore.h @@ -30,6 +30,11 @@ protected: } void journal_stop() { finisher.stop(); + if (journal) { + journal->close(); + delete journal; + journal = 0; + } } int journal_replay(); -- 2.47.3