/*
* Copyright (c) 1995-1998, Index Data.
* See the file LICENSE for details.
- * $Id: isamd.c,v 1.19 1999-11-30 13:48:04 adam Exp $
+ * $Id: isamd.c,v 1.21 2002-07-11 16:16:00 heikki Exp $
*
* Isamd - isam with diffs
* Programmed by: Heikki Levanto
{ 32, 40 }, /* 24 is the smallest unreasonable size! */
{ 64, 0 },
#else
- { 64, 1 },
+ { 32, 1 },
{ 128, 1 },
{ 256, 1 },
{ 512, 1 },
(*is->method->code_stop)(ISAMD_DECODE, pp->decodeClientData);
isamd_free_diffs(pp); /* see merge-d.h */
- xfree (pp->buf);
- xfree (pp);
if (is->method->debug > 5)
- logf (LOG_LOG, "isamd_pp_close %p %d=%d:%d sz=%d n=%d=%d:%d",
+ logf (LOG_LOG, "isamd_pp_close %p %d=%d:%d sz=%d n=%d=%d:%d nk=%d",
pp, isamd_addr(pp->pos, pp->cat), pp->cat, pp->pos, pp->size,
- pp->next, isamd_type(pp->next), isamd_block(pp->next) );
+ pp->next, isamd_type(pp->next), isamd_block(pp->next),
+ pp->numKeys );
+ xfree (pp->buf);
+ xfree (pp);
}
/*
* $Log: isamd.c,v $
- * Revision 1.19 1999-11-30 13:48:04 adam
+ * Revision 1.21 2002-07-11 16:16:00 heikki
+ * Fixed a bug in isamd, failed to store a single key when its bits
+ * did not fit into a singleton.
+ *
+ * Revision 1.20 2002/06/19 10:29:18 adam
+ * align block sizes for isam sys. Better plot for test
+ *
+ * Revision 1.19 1999/11/30 13:48:04 adam
* Improved installation. Updated for inclusion of YAZ header files.
*
* Revision 1.18 1999/10/06 15:18:13 heikki