- if (root_header.free_space >= k.Size ()) {
- std::cout << "Hay lugar para meter la clave" << std::endl;
+ if (node_header.free_space >= k->Size ()) {
+ /* TODO : Insertar ordenado */
+ /* Siempre se agrega en una hoja */
+ node_keys.push_back (BTreeLeafData (k->Clone ()));
+
+ WriteKeys (node, node_header, node_keys);
+ WriteNodoHeader (node, &node_header);
+ WriteBlock (node, node_num);
+ delete [] node;