* Sebastian Hammer, Adam Dickmeiss
*
* $Log: isam.c,v $
- * Revision 1.12 1995-09-06 16:11:41 adam
+ * Revision 1.14 1995-11-24 17:26:19 quinn
+ * Mostly about making some ISAM stuff in the config file optional.
+ *
+ * Revision 1.13 1995/10/17 18:03:15 adam
+ * Commented out qsort in is_merge.
+ *
+ * Revision 1.12 1995/09/06 16:11:41 adam
* Keysize parameter to is_open (if non-zero).
*
* Revision 1.11 1995/09/04 12:33:46 adam
new->types[i].index = 0; /* dummy */
/* determine number and size of blocktypes */
- if (!(r = res_get(common_resource, nm = strconcat(name, ".",
- "blocktypes", 0))) || !(num = splitargs(r, pp, IS_MAX_BLOCKTYPES)))
+ if (!(r = res_get_def(common_resource, nm = strconcat(name, ".",
+ "blocktypes", 0), "64 1K")) ||
+ !(num = splitargs(r, pp, IS_MAX_BLOCKTYPES)))
{
logf (LOG_FATAL, "Failed to locate resource %s", nm);
return 0;
new->repack = atoi(r);
/* determine max keys/blocksize */
- if (!(r = res_get(common_resource, nm = strconcat(name, ".",
- "maxkeys", 0))) || !(num = splitargs(r, pp, IS_MAX_BLOCKTYPES)))
+ if (!(r = res_get_def(common_resource, nm = strconcat(name, ".",
+ "maxkeys", 0), "50")) || !(num = splitargs(r, pp, IS_MAX_BLOCKTYPES)))
{
logf (LOG_FATAL, "Failed to locate resource %s", nm);
return 0;
}
/* determine nice fill rates */
- if (!(r = res_get(common_resource, nm = strconcat(name, ".",
- "nicefill", 0))) || !(num = splitargs(r, pp, IS_MAX_BLOCKTYPES)))
+ if (!(r = res_get_def(common_resource, nm = strconcat(name, ".",
+ "nicefill", 0), "90 90")) || !(num = splitargs(r, pp,
+ IS_MAX_BLOCKTYPES)))
{
logf (LOG_FATAL, "Failed to locate resource %s", nm);
return 0;
char operation, *record;
extcmp = is->cmp;
+#if 0
qsort(data, num, is_keysize(is) + 1, sort_input);
+#endif
is_m_establish_tab(is, &tab, pos);
if (pos)
if (is_m_read_full(&tab, tab.data) < 0)