/*
- * Copyright (C) 1995-1998, Index Data
+ * Copyright (C) 1995-1998, Index Data ApS
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: cfile.c,v $
- * Revision 1.20 1998-08-07 15:07:13 adam
+ * Revision 1.21 1998-08-24 17:29:52 adam
+ * Minor changes.
+ *
+ * Revision 1.20 1998/08/07 15:07:13 adam
* Fixed but in cf_commit_flat.
*
* Revision 1.19 1997/02/12 20:37:17 adam
int cf_close (CFile cf)
{
- logf (LOG_DEBUG, "cf: hits=%d miss=%d bucket_in_memory=%d total=%d",
+ logf (LOG_LOG, "cf: close hits=%d miss=%d bucket_in_memory=%d total=%d",
cf->no_hits, cf->no_miss, cf->bucket_in_memory,
cf->head.next_bucket - cf->head.first_bucket);
flush_bucket (cf, -1);
/*
- * Copyright (C) 1995-1998, Index Data I/S
+ * Copyright (C) 1995-1998, Index Data ApS
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zebraapi.c,v $
- * Revision 1.7 1998-06-24 12:16:13 adam
+ * Revision 1.8 1998-08-24 17:29:23 adam
+ * Minor changes.
+ *
+ * Revision 1.7 1998/06/24 12:16:13 adam
* Support for relations on text operands. Open range support in
* DFA module (i.e. [-j], [g-]).
*
zh->registerState = state;
zh->records = rec_open (zh->bfs, 0);
if (!(zh->dict = dict_open (zh->bfs, FNAME_DICT, 40, 0)))
+ {
+ logf (LOG_WARN, "dict_open");
return -1;
+ }
if (!(zh->sortIdx = sortIdx_open (zh->bfs, 0)))
+ {
+ logf (LOG_WARN, "sortIdx_open");
return -1;
+ }
zh->isam = NULL;
zh->isamc = NULL;
if (!res_get_match (zh->res, "isam", "i", NULL))
{
if (!(zh->isamc = isc_open (zh->bfs, FNAME_ISAMC,
0, key_isamc_m(zh->res))))
+ {
+ logf (LOG_WARN, "isc_open");
return -1;
+ }
}
else
{
if (!(zh->isam = is_open (zh->bfs, FNAME_ISAM, key_compare, 0,
sizeof (struct it_key), zh->res)))
+ {
+ logf (LOG_WARN, "is_open");
return -1;
+ }
}
zh->zei = zebraExplain_open (zh->records, zh->dh, zh->res, 0, 0, 0);
else
passwd_db_file (zh->passwd_db, res_get (zh->res, "passwd"));
}
- zh->bfs = bfs_create (res_get (zh->res, "register"));
- bf_lockDir (zh->bfs, res_get (zh->res, "lockDir"));
- data1_set_tabpath (zh->dh, res_get(zh->res, "profilePath"));
-
return zh;
}