]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filejournal: assert submit_entry gets >0 bytes
authorSage Weil <sage.weil@dreamhost.com>
Thu, 19 Jan 2012 00:24:52 +0000 (16:24 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 28 Jan 2012 18:56:55 +0000 (10:56 -0800)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/os/FileJournal.cc

index 5a2ec11d2d72a39aac57048a5f6711cf377b28c9..a73a6c1d309072bfaacb5704388faa3fc36cc4a5 100644 (file)
@@ -1029,6 +1029,7 @@ void FileJournal::submit_entry(uint64_t seq, bufferlist& e, int alignment, Conte
   dout(5) << "submit_entry seq " << seq
           << " len " << e.length()
           << " (" << oncommit << ")" << dendl;
+  assert(e.length() > 0);
 
   completions.push_back(completion_item(seq, oncommit, ceph_clock_now(g_ceph_context)));