]> git.llucax.com Git - z.facultad/75.06/emufs.git/blobdiff - emufs/indice_bplus.c
Algun dia terminara de arreglarse el obtener_siguiente, espero que sea ahora
[z.facultad/75.06/emufs.git] / emufs / indice_bplus.c
index 1882cd6f26a89a2898c7be760f7e68cf5f492435..323c7c0f5e936ee3ab4001c0ba5a581c1eed8b42 100644 (file)
@@ -372,9 +372,10 @@ int b_plus_buscar_prepost(INDICE *idx, CLAVE key, int num_node, INDEX_DAT *prepo
                                                        b_plus_destruir_nodo(nodo);
                                                        nodo = b_plus_leer_nodo(idx,num_node);
                                                        prepostkey->clave = nodo->claves[0];
-                                                       prepostkey->num_bloque = nodo->hijos[0];                                                        
+                                                       prepostkey->num_bloque = nodo->hijos[0];
+                                                       exitcode = 1;                                                   
                                                } 
-                                               else exitcode = 1; /* No hay mas */
+                                               else exitcode = -1; /* No hay mas */
                                        }
                                        else {                                                                                          
                                                prepostkey->clave = nodo->claves[i+1];