Delete a byte.
153505 {
153507 {
153508 auto n7_handle = DeleteByteInternal(art, node, byte);
153509 auto &n7 = n7_handle.Get();
153510
153511 if (n7.count != 1) {
153512 return;
153513 }
153514
153515
153516 D_ASSERT(node.GetGateStatus() == GateStatus::GATE_NOT_SET);
153517
153518
153519 remainder = UnsafeNumericCast<idx_t>(row_id.GetRowId()) & AND_LAST_BYTE;
153520 remainder |= UnsafeNumericCast<idx_t>(n7.key[0]);
153521
153522
153523 if (prefix.GetType() == NType::PREFIX) {
153525 Leaf::New(prefix, UnsafeNumericCast<row_t>(remainder));
153526 return;
153527 }
153528 }
153529
153531 Leaf::New(node, UnsafeNumericCast<row_t>(remainder));
153532}
static void New(Node &node, const row_t row_id)
Inline a row ID into a node pointer.
Definition duckdb.cpp:154285
static void FreeNode(ART &art, Node &node)
Free the node.
Definition duckdb.cpp:154622
static void FreeTree(ART &art, Node &node)
Free the node and its children.
Definition duckdb.cpp:154628
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237