? patch.db27 ? patch.db28 ? patch.db29 Index: todo.jcea =================================================================== RCS file: /cvsroot/ircd/todo.jcea,v retrieving revision 1.7 diff -c -r1.7 todo.jcea *** ../ircu2.10.06/todo.jcea 1999/10/13 14:33:23 1.7 --- ../ircu2.10.06+/todo.jcea 1999/10/13 15:14:27 *************** *** 27,36 **** Preguntas remotas 08/Oct/99 - Ojo con el tema de las compactaciones en las bases de - datos no residentes, asi como el calculo de su HASH. - - 08/Oct/99 Cuando un servidor detecta que una de sus BDD esta corrupta, solicita una copia nueva a TODOS sus enlaces. Si es un HUB, ello supone: --- 27,32 ---- Index: ircd/s_debug.c =================================================================== RCS file: /cvsroot/ircd/ircd/s_debug.c,v retrieving revision 1.46 diff -c -r1.46 s_debug.c *** ../ircu2.10.06/ircd/s_debug.c 1999/10/13 14:32:38 1.46 --- ../ircu2.10.06+/ircd/s_debug.c 1999/10/13 15:14:27 *************** *** 191,197 **** '-', #endif #endif ! 'D','B','2','8', #ifdef DB_ESNET '+', #else --- 191,197 ---- '-', #endif #endif ! 'D','B','2','9', #ifdef DB_ESNET '+', #else Index: ircd/s_serv.c =================================================================== RCS file: /cvsroot/ircd/ircd/s_serv.c,v retrieving revision 1.30 diff -c -r1.30 s_serv.c *** ../ircu2.10.06/ircd/s_serv.c 1999/10/13 14:32:38 1.30 --- ../ircu2.10.06+/ircd/s_serv.c 1999/10/13 15:14:28 *************** *** 1663,1671 **** */ tabla_serie[que_bdd]=atol(registro); - tabla_hash_hi[que_bdd]=0; - tabla_hash_lo[que_bdd]=0; - sprintf_irc(path,"%s/tabla.%c",DBPATH,que_bdd); alarm(3); db_file=open(path,O_RDWR | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); --- 1663,1668 ---- *************** *** 1675,1680 **** --- 1672,1685 ---- MAP_SHARED | MAP_NORESERVE,db_file,0); alarm(0); + if(!tabla_residente[que_bdd]) { /* No residente -> No pack */ + escritura=map+len; + goto fin; + } + + tabla_hash_hi[que_bdd]=0; + tabla_hash_lo[que_bdd]=0; + p=lectura=escritura=map; while(lectura