diff options
author | Sage Weil <sage@inktank.com> | 2012-12-29 00:44:51 +0100 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-12-29 00:44:51 +0100 |
commit | 076b418c7f03c5c62f811fdc566e4e2b776389b7 (patch) | |
tree | 8fbf700dbbc9585d02af0bbb391784f441ce7e7f /src/os | |
parent | log: broadcast cond signals (diff) | |
download | ceph-076b418c7f03c5c62f811fdc566e4e2b776389b7.tar.xz ceph-076b418c7f03c5c62f811fdc566e4e2b776389b7.zip |
os/FileJournal: logger is optional
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/FileJournal.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index 5f31406db40..ee8f7029eb5 100644 --- a/src/os/FileJournal.cc +++ b/src/os/FileJournal.cc @@ -1147,8 +1147,10 @@ void FileJournal::write_thread_entry() } assert(r == 0); - logger->inc(l_os_j_wr); - logger->inc(l_os_j_wr_bytes, bl.length()); + if (logger) { + logger->inc(l_os_j_wr); + logger->inc(l_os_j_wr_bytes, bl.length()); + } #ifdef HAVE_LIBAIO if (aio) |