summaryrefslogtreecommitdiff
path: root/sql/ha_berkeley.cc
diff options
context:
space:
mode:
authorvva@eagle.mysql.r18.ru <>2004-03-27 02:37:05 +0400
committervva@eagle.mysql.r18.ru <>2004-03-27 02:37:05 +0400
commitc81bf339c2d9738e4b28cb8a319f50d31671c590 (patch)
tree27627db4156f31201fdf5a3302e0d781c75ca873 /sql/ha_berkeley.cc
parent1eff4744f154e0c654fbc6e96a9ab199f2a3ee05 (diff)
downloadmariadb-git-c81bf339c2d9738e4b28cb8a319f50d31671c590.tar.gz
some cleanup of last patch for BUG #2342
Diffstat (limited to 'sql/ha_berkeley.cc')
-rw-r--r--sql/ha_berkeley.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/ha_berkeley.cc b/sql/ha_berkeley.cc
index d0ce8f1fdb2..3522aadf349 100644
--- a/sql/ha_berkeley.cc
+++ b/sql/ha_berkeley.cc
@@ -2102,6 +2102,15 @@ int ha_berkeley::analyze(THD* thd, HA_CHECK_OPT* check_opt)
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!
The reason of the conflict is the difference between versions of bdb: