| 12262 | } |
| 12263 | |
| 12264 | handler *ha_mroonga::wrapper_clone(const char *name, MEM_ROOT *mem_root) |
| 12265 | { |
| 12266 | handler *cloned_handler; |
| 12267 | MRN_DBUG_ENTER_METHOD(); |
| 12268 | if (!(cloned_handler = get_new_handler(table->s, mem_root, |
| 12269 | table->s->db_type()))) |
| 12270 | DBUG_RETURN(NULL); |
| 12271 | ((ha_mroonga *) cloned_handler)->is_clone = true; |
| 12272 | ((ha_mroonga *) cloned_handler)->parent_for_clone = this; |
| 12273 | ((ha_mroonga *) cloned_handler)->mem_root_for_clone = mem_root; |
| 12274 | if (cloned_handler->ha_open(table, table->s->normalized_path.str, |
| 12275 | table->db_stat, HA_OPEN_IGNORE_IF_LOCKED)) |
| 12276 | { |
| 12277 | delete cloned_handler; |
| 12278 | DBUG_RETURN(NULL); |
| 12279 | } |
| 12280 | DBUG_RETURN(cloned_handler); |
| 12281 | } |
| 12282 | |
| 12283 | handler *ha_mroonga::storage_clone(const char *name, MEM_ROOT *mem_root) |
| 12284 | { |
nothing calls this directly
no test coverage detected