]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
journaler: fix comments
authorSage Weil <sage.weil@dreamhost.com>
Sat, 26 Mar 2011 03:17:53 +0000 (20:17 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 1 Apr 2011 04:10:58 +0000 (21:10 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osdc/Journaler.cc

index 6b6c82296eb31d3a350c8f13eff60c396b521c9b..bcf43f2d35089ad5ee911437db65924dc341904e 100644 (file)
@@ -638,11 +638,6 @@ void Journaler::_assimilate_prefetch()
   }
 }
 
-/* NOTE: this could be slightly smarter... we could allow
- * multiple reads to be in progress.  e.g., if we prefetch, but
- * then discover we need even more for an especially large entry.
- * i don't think that circumstance will arise particularly often.
- */
 void Journaler::_issue_read(int64_t len)
 {
   // make sure we're fully flushed
@@ -718,9 +713,8 @@ void Journaler::_prefetch()
   }
 }
 
-/* is_readable()
- *  return true if next entry is ready.
- *  kickstart read as necessary.
+/*
+ * _is_readable() - return true if next entry is ready.
  */
 bool Journaler::_is_readable()
 {
@@ -763,6 +757,9 @@ bool Journaler::_is_readable()
   return false;
 }
 
+/*
+ * is_readable() - kickstart prefetch, too
+ */
 bool Journaler::is_readable() 
 {
   bool r =_is_readable();