merged files must always inherit the old file end.

This commit is contained in:
nvt-se 2009-03-26 15:57:52 +00:00
parent 04ccf215e4
commit 6a6bb53f2e

View file

@ -783,8 +783,8 @@ merge_log(coffee_page_t file_page, int extend)
hdr2.eof_hint = extend ? 0 : hdr.eof_hint; hdr2.eof_hint = extend ? 0 : hdr.eof_hint;
write_header(&hdr2, new_file->page); write_header(&hdr2, new_file->page);
new_file->end = offset;
if(extend) { if(extend) {
new_file->end = offset;
#if COFFEE_CONF_EOF_HINT #if COFFEE_CONF_EOF_HINT
refresh_eof_hint(new_file); refresh_eof_hint(new_file);
#endif #endif