X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/1c52e3a9be7b82d6ad8f42245ecbd916c7c34d77..89e087a53e76331615252ec4e79830f755dbed6a:/src/btree.cpp diff --git a/src/btree.cpp b/src/btree.cpp index 38de680..3027c9a 100644 --- a/src/btree.cpp +++ b/src/btree.cpp @@ -618,14 +618,14 @@ void BTree::JoinNodes (uint node1, uint node2, uint padre) exit (1); } - if (padre == 0) { +/* if (padre == 0) { nhp.level = 0; WriteKeys (npadre, nhp, newkeys); WriteNodoHeader (npadre, &nhp); - WriteBlock (npadre, padre); + WriteBlock (npadre, padre);*/ /* TODO: Recuperar nodo1 y nodo2 */ - } else { +// } else { WriteKeys (n1, nh1, newkeys); WriteNodoHeader (n1, &nh1); WriteBlock (n1, node1); @@ -638,7 +638,7 @@ void BTree::JoinNodes (uint node1, uint node2, uint padre) WriteKeys (npadre, nhp, nkpadre); WriteNodoHeader (npadre, &nhp); WriteBlock (npadre, padre); - } + //} DeleteKeys (nk1); DeleteKeys (nk2);