offset for determining whether a record stream indexing is finished
or not. Indeed filters, like ALVIS, reads large chunks at a time.
The grs.{regx,tcl} filter instead is modified to return the
"right thing", i.e. NULL data1 tree (signalling EOF / no more data).
-/* $Id: extract.c,v 1.232 2006-10-29 20:35:58 adam Exp $
+/* $Id: extract.c,v 1.233 2006-10-30 11:18:26 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
}
while(1)
{
- off_t prev_off = streamp->tellf(streamp);
-
r = zebra_extract_record_stream(zh, streamp,
deleteFlag,
0, /* tst_mode */
{
break;
}
- if (prev_off == streamp->tellf(streamp))
- break;
}
if (streamp)
stream.destroy(streamp);
-/* $Id: regxread.c,v 1.3 2006-08-22 13:39:27 adam Exp $
+/* $Id: regxread.c,v 1.4 2006-10-30 11:18:26 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
}
#endif
execAction (spec, lt->beginActionList, ptr, &ptr);
+
lexNode (spec, &ptr);
while (spec->d1_level)
{
tagDataRelease (spec);
(spec->d1_level)--;
}
+ /* return here if no 'end record' was issued and we're dealing
+ with non-first record in stream */
+ if (spec->stop_flag == 0 && offset)
+ return 0;
+
execAction (spec, lt->endActionList, ptr, &ptr);
return spec->d1_stack[0];
}