Bug #14671 ha_berkeley::analyze() code can be simplified
Submitted: 5 Nov 2005 15:55 Modified: 6 Dec 2005 4:03
Reporter: Jim Winstead Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: BDB Severity:S3 (Non-critical)
Version:5.1 OS:Any (All)
Assigned to: Jim Winstead CPU Architecture:Any

[5 Nov 2005 15:55] Jim Winstead
Description:
The code in analyze goes to a bit of trouble to avoid blocking on on the db->stat() call because BDB did not support a transaction handle there. The newer releases support a transaction handle to the                          
stat call so that code is not necessary.  We should be able to get rid of most of the code and just pass trx->all or trx->stmt to dbp->stat()

http://www.sleepycat.com/docs/api_c/db_stat.html

How to repeat:
The fix for Bug #2342 introduced this change, so there is a test case for this in bdb-crash.test.
[8 Nov 2005 1:12] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/32071
[6 Dec 2005 4:03] Jim Winstead
Fixed in 5.1.4.