]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FileStore.cc: fix warning about comparing int with bool
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 1 Mar 2013 15:27:38 +0000 (16:27 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 1 Mar 2013 15:27:38 +0000 (16:27 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/FileStore.cc

index 0144a731da1788128a5cfbe42c8821b933ec0f68..d2e2763d2db6d48fba9beeccab4ed15a037ad5d5 100644 (file)
@@ -1265,9 +1265,9 @@ int FileStore::_sanity_check_fs()
 {
   // sanity check(s)
 
-  if ((int)m_filestore_journal_writeahead +
+  if (((int)m_filestore_journal_writeahead +
       (int)m_filestore_journal_parallel +
-      (int)m_filestore_journal_trailing > 1) {
+      (int)m_filestore_journal_trailing) > 1) {
     dout(0) << "mount ERROR: more than one of filestore journal {writeahead,parallel,trailing} enabled" << dendl;
     cerr << TEXT_RED 
         << " ** WARNING: more than one of 'filestore journal {writeahead,parallel,trailing}'\n"