projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow same document to be modified multiple times within one transaction.
[idzebra-moved-to-github.git]
/
index
/
extract.c
diff --git
a/index/extract.c
b/index/extract.c
index
ee70256
..
dcd4206
100644
(file)
--- a/
index/extract.c
+++ b/
index/extract.c
@@
-1,4
+1,4
@@
-/* $Id: extract.c,v 1.194 2005-08-30 12:23:02 adam Exp $
+/* $Id: extract.c,v 1.195 2005-09-16 09:58:38 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
Copyright (C) 1995-2005
Index Data ApS
@@
-43,6
+43,8
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define USE_SHELLSORT 0
#define USE_SHELLSORT 0
+#define REC_MULTI_SKIP 0
+
#if USE_SHELLSORT
static void shellsort(void *ar, int r, size_t s,
int (*cmp)(const void *a, const void *b))
#if USE_SHELLSORT
static void shellsort(void *ar, int r, size_t s,
int (*cmp)(const void *a, const void *b))
@@
-569,6
+571,7
@@
static int file_extract_record(ZebraHandle zh,
recordAttr = rec_init_attr (zh->reg->zei, rec);
recordAttr = rec_init_attr (zh->reg->zei, rec);
+#if REC_MULTI_SKIP
if (!force_update && recordAttr->runNumber ==
zebraExplain_runNumberIncrement (zh->reg->zei, 0))
{
if (!force_update && recordAttr->runNumber ==
zebraExplain_runNumberIncrement (zh->reg->zei, 0))
{
@@
-581,6
+584,7
@@
static int file_extract_record(ZebraHandle zh,
logRecord (zh);
return 1;
}
logRecord (zh);
return 1;
}
+#endif
/* flush old keys for sort&search etc. */
delkeys.buf_used = rec->size[recInfo_delKeys];
delkeys.buf = rec->info[recInfo_delKeys];
/* flush old keys for sort&search etc. */
delkeys.buf_used = rec->size[recInfo_delKeys];
delkeys.buf = rec->info[recInfo_delKeys];
@@
-1044,6
+1048,7
@@
ZEBRA_RES buffer_extract_record (ZebraHandle zh,
recordAttr = rec_init_attr (zh->reg->zei, rec);
recordAttr = rec_init_attr (zh->reg->zei, rec);
+#if REC_MULTI_SKIP
if (!force_update) {
if (recordAttr->runNumber ==
zebraExplain_runNumberIncrement (zh->reg->zei, 0))
if (!force_update) {
if (recordAttr->runNumber ==
zebraExplain_runNumberIncrement (zh->reg->zei, 0))
@@
-1057,6
+1062,7
@@
ZEBRA_RES buffer_extract_record (ZebraHandle zh,
return ZEBRA_FAIL;
}
}
return ZEBRA_FAIL;
}
}
+#endif
delkeys.buf_used = rec->size[recInfo_delKeys];
delkeys.buf = rec->info[recInfo_delKeys];
delkeys.buf_used = rec->size[recInfo_delKeys];
delkeys.buf = rec->info[recInfo_delKeys];