mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
some cleanup of last patch for BUG #2342
mysql-test/t/bdb-crash.test: added newline sql/ha_berkeley.cc: added a commet
This commit is contained in:
parent
2e3950b20d
commit
04e879e7ae
2 changed files with 10 additions and 1 deletions
|
|
@ -45,4 +45,4 @@ create table t1 (a int) engine=bdb;
|
|||
set autocommit=0;
|
||||
insert into t1 values(1);
|
||||
analyze table t1;
|
||||
drop table t1;
|
||||
drop table t1;
|
||||
|
|
|
|||
|
|
@ -2101,6 +2101,15 @@ int ha_berkeley::analyze(THD* thd, HA_CHECK_OPT* check_opt)
|
|||
uint i;
|
||||
DB_TXN_STAT *txn_stat_ptr= 0;
|
||||
|
||||
/*
|
||||
Original bdb documentation says:
|
||||
"The DB->stat method cannot be transaction-protected.
|
||||
For this reason, it should be called in a thread of
|
||||
control that has no open cursors or active transactions."
|
||||
So, let's check if there are any changes have been done since
|
||||
the beginning of the transaction..
|
||||
*/
|
||||
|
||||
/*
|
||||
If it's a merge conflict here (4.0->4.1), please ignore it!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue