Bug #26980 | binlog_hton->create dangling after int binlog_init(void *p)? | ||
---|---|---|---|
Submitted: | 9 Mar 2007 0:54 | Modified: | 4 Feb 2008 16:39 |
Reporter: | Chongfeng Hu | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.2.0 falcon-alpha, 5.1 | OS: | Any (any) |
Assigned to: | Ingo Strüwing | CPU Architecture: | Any |
Tags: | create, dangling pointer |
[9 Mar 2007 0:54]
Chongfeng Hu
[29 Mar 2007 10:33]
Sveta Smirnova
Thank you for the report. Verified as described.
[4 Feb 2008 16:39]
Ingo Strüwing
This is not a bug. 'binlog_hton' is a pseudo handlerton. It cannot be used to create handlers. Its purpose is to store thread specific transaction information for the binlog functions. Consequently there is no 'create' function. Hence the element is left at NULL. The structure is allocated in ha_initialize_handlerton() using MY_ZEROFILL, called from plugin_initialize() through plugin_type_initialize[MYSQL_STORAGE_ENGINE_PLUGIN], called from plugin_init(), called from init_server_components(), called from main(). So it is correctly initialized. BTW, there are more elements, even function pointers, not assigned in binlog_init(). Why did you mention 'create' only?