[NeoStats-Devel] [Commits] r2849 - trunk/src

[email protected] Fri, 30 Sep 2005 04:31:00 +1000
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Fri Sep 30 02:30:52 2005
New Revision: 2849

Modified:
   trunk/src/nsdba.c
Log:
fix bug in table closing

Modified: trunk/src/nsdba.c
==============================================================================
--- trunk/src/nsdba.c	(original)
+++ trunk/src/nsdba.c	Fri Sep 30 02:30:52 2005
@@ -334,12 +334,12 @@
 		return NS_FAILURE;
 	}
 	ircsnprintf( dbname, MAXPATH, "data/%s%s", GET_CUR_MODNAME(), table ? table : "" );
-	node = hash_lookup( dbhash, dbname );
+	node = hash_lookup( dbe->tablehash, dbname );
 	if( node )
 	{
 		tbe = (tableentry *)hnode_get( node );
 		DBMCloseTable( tbe->handle );
-		hash_delete_destroy_node( dbhash, node );
+		hash_delete_destroy_node( dbe->tablehash, node );
 		ns_free( tbe );
 	}
 	return NS_SUCCESS;