MCPcopy Create free account
hub / github.com/MariaDB/server / wrapper_clone

Method wrapper_clone

storage/mroonga/ha_mroonga.cpp:12264–12281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12262}
12263
12264handler *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
12283handler *ha_mroonga::storage_clone(const char *name, MEM_ROOT *mem_root)
12284{

Callers

nothing calls this directly

Calls 3

get_new_handlerFunction · 0.85
db_typeMethod · 0.80
ha_openMethod · 0.80

Tested by

no test coverage detected