X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isam%2Fisam.c;h=248a944f2d12b7a6308744aac782269a9fd4f8d7;hb=e39158d4c6147865c129d2524f1b910e4e7921ed;hp=057ffa8a7fbda0484723b9a9d7d33efda2989336;hpb=fa9ed9d37eadc2092f773ccff49c5b6c8b879a9a;p=idzebra-moved-to-github.git diff --git a/isam/isam.c b/isam/isam.c index 057ffa8..248a944 100644 --- a/isam/isam.c +++ b/isam/isam.c @@ -4,7 +4,17 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: isam.c,v $ - * Revision 1.14 1995-11-24 17:26:19 quinn + * Revision 1.17 1995-12-06 15:48:44 quinn + * Fixed update-problem. + * + * Revision 1.16 1995/12/06 14:48:26 quinn + * Fixed some strange bugs. + * + * Revision 1.15 1995/12/06 09:59:45 quinn + * Fixed memory-consumption bug in memory.c + * Added more blocksizes to the default ISAM configuration. + * + * 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 @@ -123,7 +133,7 @@ ISAM is_open(const char *name, int (*cmp)(const void *p1, const void *p2), /* determine number and size of blocktypes */ if (!(r = res_get_def(common_resource, nm = strconcat(name, ".", - "blocktypes", 0), "64 1K")) || + "blocktypes", 0), "64 512 4K 32K")) || !(num = splitargs(r, pp, IS_MAX_BLOCKTYPES))) { logf (LOG_FATAL, "Failed to locate resource %s", nm); @@ -211,7 +221,8 @@ ISAM is_open(const char *name, int (*cmp)(const void *p1, const void *p2), /* determine max keys/blocksize */ if (!(r = res_get_def(common_resource, nm = strconcat(name, ".", - "maxkeys", 0), "50")) || !(num = splitargs(r, pp, IS_MAX_BLOCKTYPES))) + "maxkeys", 0), "50 640 10000")) || !(num = splitargs(r, pp, + IS_MAX_BLOCKTYPES))) { logf (LOG_FATAL, "Failed to locate resource %s", nm); return 0; @@ -253,7 +264,7 @@ ISAM is_open(const char *name, int (*cmp)(const void *p1, const void *p2), /* determine nice fill rates */ if (!(r = res_get_def(common_resource, nm = strconcat(name, ".", - "nicefill", 0), "90 90")) || !(num = splitargs(r, pp, + "nicefill", 0), "90 90 90 95")) || !(num = splitargs(r, pp, IS_MAX_BLOCKTYPES))) { logf (LOG_FATAL, "Failed to locate resource %s", nm); @@ -462,7 +473,7 @@ void is_pt_free(ISPT ip) */ int is_readkey(ISPT ip, void *buf) { - return is_m_read_record(&ip->tab, buf); + return is_m_read_record(&ip->tab, buf, 0); } int is_numkeys(ISPT ip)