]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: hide flush log message if no flushes are pending
authorJason Dillaman <dillaman@redhat.com>
Sun, 1 Mar 2015 05:42:48 +0000 (00:42 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 2 Mar 2015 19:19:06 +0000 (14:19 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AsyncOperation.cc

index 2f0ef81e4181fc0d45f2d1f8066a61a3e0aa9547..dfb1e61a10095b095f2ff8b99bd76ad6d0125fd9 100644 (file)
@@ -29,7 +29,7 @@ void AsyncOperation::finish_op() {
     assert(m_xlist_item.remove_myself());
 
     // linked list stored newest -> oldest ops
-    if (!iter.end()) {
+    if (!iter.end() && !m_flush_contexts.empty()) {
       ldout(m_image_ctx->cct, 20) << "moving flush contexts to previous op: "
                                   << *iter << dendl;
       (*iter)->m_flush_contexts.insert((*iter)->m_flush_contexts.end(),