-/* $Id: extract.c,v 1.141 2003-03-05 00:08:04 adam Exp $
+/* $Id: extract.c,v 1.142 2003-03-12 17:11:23 pop Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
Index Data Aps
recordType,
sysno,
match_criteria,
- "<no file>"));
+ "<no file>",
+ 0));
}
/*
If sysno is provided, then it's used to identify the reocord.
const char *recordType,
int *sysno,
const char *match_criteria,
- const char *fname)
+ const char *fname,
+ int force_update)
{
RecordAttr *recordAttr;
recordAttr = rec_init_attr (zh->reg->zei, rec);
- if (recordAttr->runNumber ==
- zebraExplain_runNumberIncrement (zh->reg->zei, 0))
- {
- logf (LOG_LOG, "skipped %s %s %ld", recordType,
- fname, (long) recordOffset);
- extract_flushSortKeys (zh, *sysno, -1, &zh->reg->sortKeys);
- rec_rm (&rec);
- logRecord(zh);
- return 1;
+ if (!force_update) {
+ if (recordAttr->runNumber ==
+ zebraExplain_runNumberIncrement (zh->reg->zei, 0))
+ {
+ logf (LOG_LOG, "skipped %s %s %ld", recordType,
+ fname, (long) recordOffset);
+ extract_flushSortKeys (zh, *sysno, -1, &zh->reg->sortKeys);
+ rec_rm (&rec);
+ logRecord(zh);
+ return 1;
+ }
}
+
delkeys.buf_used = rec->size[recInfo_delKeys];
delkeys.buf = rec->info[recInfo_delKeys];
-/* $Id: index.h,v 1.95 2003-03-06 11:58:08 adam Exp $
+/* $Id: index.h,v 1.96 2003-03-12 17:11:23 pop Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
const char *recordType,
int *sysno,
const char *match_criteria,
- const char *fname);
+ const char *fname,
+ int force_update);
int extract_rec_in_mem (ZebraHandle zh, const char *recordType,
const char *buf, size_t buf_size,
-/* $Id: zebraapi.c,v 1.91 2003-03-06 11:58:08 adam Exp $
+/* $Id: zebraapi.c,v 1.92 2003-03-12 17:11:23 pop Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
Index Data Aps
struct recordGroup *rGroup,
const char *recordType,
int sysno, const char *match, const char *fname,
- const char *buf, int buf_size)
+ const char *buf, int buf_size,
+ int force_update)
{
int res;
0, // test_mode,
recordType,
&sysno,
- match, fname);
+ match, fname,
+ force_update);
zebra_end_trans(zh);
return sysno;
}
struct recordGroup *rGroup,
const char *recordType,
int sysno, const char *match, const char *fname,
- const char *buf, int buf_size)
+ const char *buf, int buf_size,
+ int force_update)
{
int res;
0, // test_mode,
recordType,
&sysno,
- match,fname);
+ match,fname,
+ force_update);
zebra_end_trans(zh);
return sysno;
}