Node allocation/deletion routines.
| 1377 | |
| 1378 | // Node allocation/deletion routines. |
| 1379 | static btree_node *init_leaf(btree_node *n, btree_node *parent, |
| 1380 | int max_cnt) { |
| 1381 | n->set_parent(parent); |
| 1382 | n->set_position(0); |
| 1383 | n->set_start(0); |
| 1384 | n->set_count(0); |
| 1385 | n->set_max_count((field_type)max_cnt); |
| 1386 | phmap::priv::SanitizerPoisonMemoryRegion( |
| 1387 | n->slot(0), max_cnt * sizeof(slot_type)); |
| 1388 | return n; |
| 1389 | } |
| 1390 | static btree_node *init_internal(btree_node *n, btree_node *parent) { |
| 1391 | init_leaf(n, parent, kNodeValues); |
| 1392 | // Set `max_count` to a sentinel value to indicate that this node is |
nothing calls this directly
no test coverage detected