mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
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.
This commit is contained in:
parent
8437e7c140
commit
01339a767c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue