Commit 01339a76 authored by marko's avatar marko

branches/innodb+: ibuf_insert_low(): Correct an off-by-one error that caused

Issue #117.  Before buffering IBUF_OP_DELETE, require that there be at least
two records on the page.  In that way, at least one record will remain after
the delete operation has been merged.
parent 8437e7c1
......@@ -3235,7 +3235,7 @@ ibuf_insert_low(
? &min_n_recs
: NULL, &mtr);
if (op == IBUF_OP_DELETE && min_n_recs == 0) {
if (op == IBUF_OP_DELETE && min_n_recs < 2) {
/* The page could become empty after the record is
deleted. Refuse to buffer the operation. */
err = DB_STRONG_FAIL;
......
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