summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-07-22 10:14:43 +0300
committerunknown <heikki@hundin.mysql.fi>2003-07-22 10:14:43 +0300
commitca3c9603813a955eb8b515823924e448939a601a (patch)
tree473c24d0fa4475e81ead8ae57c956ecd1a64f021 /innobase
parent850dfdd9a3768a5d6959abd1440261ef87cc861e (diff)
downloadmariadb-git-ca3c9603813a955eb8b515823924e448939a601a.tar.gz
btr0cur.c:
Fix bug: if there was a 'record too long' error in an insert, InnoDB forgot to free reserved file space extents; they were only freed in mysqld restart innobase/btr/btr0cur.c: Fix bug: if there was a 'record too long' error in an insert, InnoDB forgot to free reserved file space extents; they were only freed in mysqld restart
Diffstat (limited to 'innobase')
-rw-r--r--innobase/btr/btr0cur.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/innobase/btr/btr0cur.c b/innobase/btr/btr0cur.c
index 8c9c84b103d..29a8fd44b9e 100644
--- a/innobase/btr/btr0cur.c
+++ b/innobase/btr/btr0cur.c
@@ -1107,6 +1107,10 @@ btr_cur_pessimistic_insert(
if (big_rec_vec == NULL) {
+ if (n_extents > 0) {
+ fil_space_release_free_extents(index->space,
+ n_extents);
+ }
return(DB_TOO_BIG_RECORD);
}
}