projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3588e61
)
another fix
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 17 Apr 2002 09:03:38 +0000
(09:03 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 17 Apr 2002 09:03:38 +0000
(09:03 +0000)
isamb/isamb.c
patch
|
blob
|
history
diff --git
a/isamb/isamb.c
b/isamb/isamb.c
index
9c5e313
..
65bed28
100644
(file)
--- a/
isamb/isamb.c
+++ b/
isamb/isamb.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-1998, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1995-1998, Index Data.
* See the file LICENSE for details.
*
- * $Id: isamb.c,v 1.5 2002-04-17 08:48:54 adam Exp $
+ * $Id: isamb.c,v 1.6 2002-04-17 09:03:38 adam Exp $
*/
#include <yaz/xmalloc.h>
#include <yaz/log.h>
*/
#include <yaz/xmalloc.h>
#include <yaz/log.h>
@@
-71,7
+71,7
@@
ISAMB isamb_open (BFiles bfs, const char *name, int writeflag, ISAMC_M method)
isamb->bfs = bfs;
isamb->method = (ISAMC_M) xmalloc (sizeof(*method));
memcpy (isamb->method, method, sizeof(*method));
isamb->bfs = bfs;
isamb->method = (ISAMC_M) xmalloc (sizeof(*method));
memcpy (isamb->method, method, sizeof(*method));
- isamb->no_cat = 4;
+ isamb->no_cat = 2;
isamb->file = xmalloc (sizeof(*isamb->file) * isamb->no_cat);
for (i = 0; i<isamb->no_cat; i++)
isamb->file = xmalloc (sizeof(*isamb->file) * isamb->no_cat);
for (i = 0; i<isamb->no_cat; i++)
@@
-472,10
+472,11
@@
int isamb_insert_one (ISAMB b, const void *item, ISAMC_P pos)
else
{
/* b-tree insert */
else
{
/* b-tree insert */
- struct ISAMB_block *p, *sp = 0;
+ struct ISAMB_block *p = open_block (b, pos), *sp = 0;
char sub_item[DST_ITEM_MAX];
int sub_size;
char sub_item[DST_ITEM_MAX];
int sub_size;
+
insert_sub (b, p, item, &sp, sub_item, &sub_size);
if (sp)
{ /* increase level of tree by one */
insert_sub (b, p, item, &sp, sub_item, &sub_size);
if (sp)
{ /* increase level of tree by one */