Bug #33806 start_bulk_insert handler API needs return value
Submitted: 10 Jan 2008 18:11 Modified: 6 Jan 2011 15:48
Reporter: Tim Clark Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server: Storage Engine API Severity:S4 (Feature request)
Version:5.1.22 OS:Any
Assigned to: CPU Architecture:Any
Tags: handler, start_bulk_insert

[10 Jan 2008 18:11] Tim Clark
Description:
handler::start_bulk_insert() is declared as a void function. However, storage engines doing complex setup work may wish to signal an error to the caller to indicate that subsequent writes cannot be performed.

How to repeat:
Look at definition in handler.h

Suggested fix:
The API and (handler::ha_start_bulk_insert()) should return an int.
[11 Jan 2008 14:32] Sergei Golubchik
handler::start_bulk_insert() is only a hint - if a storage engine cannot do it, it just doesn't do it and MySQL will insert rows without bulk insert optimization.