]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
journal: JournalPlayer::process_state should support positive result
authorJason Dillaman <dillaman@redhat.com>
Wed, 15 Jul 2015 23:30:17 +0000 (19:30 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 6 Nov 2015 01:42:42 +0000 (20:42 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/journal/JournalPlayer.cc

index 5b90dec744a33a2b5db9766c950a1fcbef9ff017..ef11420d74defc98a26f8501738024ddcf275783 100644 (file)
@@ -159,7 +159,7 @@ bool JournalPlayer::try_pop_front(Entry *entry,
 
 void JournalPlayer::process_state(int r) {
   ldout(m_cct, 10) << __func__ << ": r=" << r << dendl;
-  if (r == 0) {
+  if (r >= 0) {
     Mutex::Locker locker(m_lock);
     switch (m_state) {
     case STATE_PREFETCH: