#include <ctype.h>
#include <string.h>
#include <errno.h>
-#ifdef HAVE_PTHREAD_H
-#include <pthread.h>
-#endif
#ifdef HAVE_GDBM_H
#include <gdbm.h>
#endif
/*
* We also keep these around, for sequential searches... (one per
- * session. Maybe there's a better way?)
+ * session. Maybe there's a better way?) FIX ... there _is_ a better
+ * way. We have TSD functions now; use them.
*/
#define MAXKEYS 256
datum dtkey[MAXKEYS];
void open_databases(void) {
int a;
+ lprintf(7, "%s\n", gdbm_version);
+
/*
* Silently try to create the database subdirectory. If it's
* already there, no problem.
void close_databases(void) {
int a;
- /* Hmm... we should decide when would be a good time to defrag.
- * Server shutdowns might be an opportune time.
- defrag_databases();
- */
-
begin_critical_section(S_DATABASE);
for (a=0; a<MAXCDB; ++a) {
lprintf(7, "Closing database %d\n", a);