Skip to content
Snippets Groups Projects
Commit aad6f005 authored by Georgy Kirichenko's avatar Georgy Kirichenko
Browse files

Fix xlog position in case of eof.

parent 3568068b
No related branches found
No related tags found
No related merge requests found
......@@ -1050,6 +1050,9 @@ xlog_cursor_next(struct xlog_cursor *i, struct xrow_header *row)
say_error("EOF marker is corrupt: %lu %lu",
(unsigned long) magic, (unsigned long) i->good_offset);
}
} else {
/* Return to last good offset, we will reread magic */
fseeko(l->f, i->good_offset, SEEK_SET);
}
/* No more rows. */
return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment