mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Merge mysql-5.1-innodb from bk-internal to my local repo
This commit is contained in:
commit
c66ce15fe3
2 changed files with 15 additions and 4 deletions
|
|
@ -1666,7 +1666,7 @@ row_merge(
|
|||
return(DB_CORRUPTION);
|
||||
}
|
||||
|
||||
ut_ad(n_run < *num_run);
|
||||
ut_ad(n_run <= *num_run);
|
||||
|
||||
*num_run = n_run;
|
||||
|
||||
|
|
@ -1714,6 +1714,11 @@ row_merge_sort(
|
|||
/* Record the number of merge runs we need to perform */
|
||||
num_runs = file->offset;
|
||||
|
||||
/* If num_runs are less than 1, nothing to merge */
|
||||
if (num_runs <= 1) {
|
||||
return(error);
|
||||
}
|
||||
|
||||
/* "run_offset" records each run's first offset number */
|
||||
run_offset = (ulint*) mem_alloc(file->offset * sizeof(ulint));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue