mirror of
https://github.com/ceph/ceph
synced 2025-02-05 18:03:54 +00:00
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 <colinm@hq.newdream.net>
This commit is contained in:
parent
6d0dc4bf64
commit
1bae352ed2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user