Commit acec0b03 authored by jyang's avatar jyang

branches/5.1: Use btr_free_root() instead of fseg_free() for

the fix of bug #48469, because fseg_free() is not defined
in the zip branch. And we could save one mini-trasaction started
by fseg_free().

Approved by Marko.
parent f2351279
......@@ -713,8 +713,7 @@ btr_create(
PAGE_HEADER + PAGE_BTR_SEG_LEAF, mtr)) {
/* Not enough space for new segment, free root
segment before return. */
fseg_free(space, page_no,
PAGE_HEADER + PAGE_BTR_SEG_TOP);
btr_free_root(space, page_no, mtr);
return(FIL_NULL);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment