From 1846355176ecd5b60e93da8cf20cea0ef6ed4326 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Sun, 9 Jan 2011 13:34:40 -0800 Subject: [PATCH] os: don't crash on no-journal case JournalingObjectStore::commit_start should handle the case where journal is null. This will occur if the user doesn't configure a journal. Signed-off-by: Colin McCabe --- src/os/JournalingObjectStore.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/JournalingObjectStore.cc b/src/os/JournalingObjectStore.cc index 464371b4cd1e3..afe006f269c4a 100644 --- a/src/os/JournalingObjectStore.cc +++ b/src/os/JournalingObjectStore.cc @@ -194,7 +194,8 @@ bool JournalingObjectStore::commit_start() ret = true; out: - journal->commit_start(); // tell the journal too + if (journal) + journal->commit_start(); // tell the journal too journal_lock.Unlock(); return ret; } -- 2.39.5