Michael Kerrin committed af10863

Fix reading uncommitted data

  • Participants
  • Parent commits 89b705f

Comments (0)

Files changed (1)

File MoinMoin/storage/backends/

             tail_offset = chunksize
         chunks = [ for chunk in self._chunks[chunkno_first:chunkno_last+1]]
+        if self._last_chunk:
+            # This is when we read an uncommitted revision. data.close just
+            # appends the last_chunk to the chunks so we can add it in here.
+            chunks.append(
         if chunks:
             # make sure that there is at least one chunk to operate on
             # if there is no chunk at all, we have empty data