[IRC-Dev CVS] SF.net SVN: irc-dev: [185] ircd/trunk
Brought to you by:
zolty
From: <zo...@us...> - 2008-06-16 21:01:30
|
Revision: 185 http://irc-dev.svn.sourceforge.net/irc-dev/?rev=185&view=rev Author: zolty Date: 2008-06-16 14:01:26 -0700 (Mon, 16 Jun 2008) Log Message: ----------- Habilitamos tabla f, tabla o y tabla p de la DDB Modified Paths: -------------- ircd/trunk/include/ddb.h ircd/trunk/ircd/ddb.c Modified: ircd/trunk/include/ddb.h =================================================================== --- ircd/trunk/include/ddb.h 2008-06-16 20:53:45 UTC (rev 184) +++ ircd/trunk/include/ddb.h 2008-06-16 21:01:26 UTC (rev 185) @@ -51,10 +51,16 @@ #define DDB_CHANDB 'c' /** Channels table (nicks) of %DDB Distributed Databases. */ #define DDB_CHANDB2 'd' +/** Features table of %DDB Distributed Databases. */ +#define DDB_FEATUREDB 'f' /** Ilines table of %DDB Distributed Databases. */ #define DDB_ILINEDB 'i' /** Nicks table of %DDB Distributed Databases. */ #define DDB_NICKDB 'n' +/** Operators table of %DDB Distributed Databases. */ +#define DDB_OPERDB 'o' +/** Privileges table of %DDB Distributed Databases. */ +#define DDB_PRIVSDB 'p' /** Vhost table of %DDB Distributed Databases. */ #define DDB_VHOSTDB 'v' /** Config table of %DDB Distributed Databases. */ Modified: ircd/trunk/ircd/ddb.c =================================================================== --- ircd/trunk/ircd/ddb.c 2008-06-16 20:53:45 UTC (rev 184) +++ ircd/trunk/ircd/ddb.c 2008-06-16 21:01:26 UTC (rev 185) @@ -206,8 +206,11 @@ */ ddb_resident_table[DDB_CHANDB] = 4096; ddb_resident_table[DDB_CHANDB2] = 32768; + ddb_resident_table[DDB_FEATUREDB] = 256; ddb_resident_table[DDB_ILINEDB] = 256; ddb_resident_table[DDB_NICKDB] = 32768; + ddb_resident_table[DDB_OPERDB] = 256; + ddb_resident_table[DDB_PRIVSDB] = 256; ddb_resident_table[DDB_VHOSTDB] = 256; ddb_resident_table[DDB_CONFIGDB] = 256; @@ -378,14 +381,6 @@ strcpy(k, key); strcpy(c, content); -/* - while (c[i] != 0) - { - k[i] = ToLower(c[i]); - i++; - } -*/ - ddb_key(ddb) = k; ddb_content(ddb) = c; ddb_next(ddb) = NULL; @@ -625,19 +620,10 @@ } strcpy(k, key); -/* - while (k[i]) - { - k[i] = ToLower(k[i]); - i++; - } -*/ - hashi = ddb_hash_register(k, ddb_resident_table[table]); for (ddb = ddb_data_table[table][hashi]; ddb; ddb = ddb_next(ddb)) { -/* if (!strcmp(ddb_key(ddb), k)) */ if (!ircd_strcmp(ddb_key(ddb), k)) { assert(0 != ddb_content(ddb)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |