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 (parent:
0b366ae
)
isamb: resize fix
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 17 Apr 2002 08:48:54 +0000
(08:48 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 17 Apr 2002 08:48:54 +0000
(08:48 +0000)
isamb/isamb.c
patch
|
blob
|
history
diff --git
a/isamb/isamb.c
b/isamb/isamb.c
index
706d0df
..
9c5e313
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.4 2002-04-17 08:17:13 adam Exp $
+ * $Id: isamb.c,v 1.5 2002-04-17 08:48:54 adam Exp $
*/
#include <yaz/xmalloc.h>
#include <yaz/log.h>
*/
#include <yaz/xmalloc.h>
#include <yaz/log.h>
@@
-436,7
+436,7
@@
int insert_flat (ISAMB b, const void *new_item, ISAMC_P *posp)
p->dirty = 1;
}
new_size = dst - dst_buf + ISAMB_DATA_OFFSET;
p->dirty = 1;
}
new_size = dst - dst_buf + ISAMB_DATA_OFFSET;
- if (p && new_size > p->size)
+ if (p && new_size > b->file[p->cat].head.block_size)
{
yaz_log (LOG_LOG, "resize %d -> %d", p->size, new_size);
close_block (b, p);
{
yaz_log (LOG_LOG, "resize %d -> %d", p->size, new_size);
close_block (b, p);