Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
static void pkey(const char *b, int mode)
{
key_logdump_txt(YLOG_LOG, b, mode ? "i" : "d");
static void pkey(const char *b, int mode)
{
key_logdump_txt(YLOG_LOG, b, mode ? "i" : "d");
pre = res_get_def(res, "keyTmpDir", ".");
sprintf(fname, "%s/key%d.tmp", pre, no);
}
pre = res_get_def(res, "keyTmpDir", ".");
sprintf(fname, "%s/key%d.tmp", pre, no);
}
pre = res_get_def(zh->res, "keyTmpDir", ".");
sprintf(fname, "%s/key%d.tmp", pre, no);
}
pre = res_get_def(zh->res, "keyTmpDir", ".");
sprintf(fname, "%s/key%d.tmp", pre, no);
}
child++;
if ((*hi->cmp)(&hi->info.buf[hi->ptr[cur]],
&hi->info.buf[hi->ptr[child]]) > 0)
child++;
if ((*hi->cmp)(&hi->info.buf[hi->ptr[cur]],
&hi->info.buf[hi->ptr[child]]) > 0)
cur = ++(hi->heapnum);
memcpy(hi->info.buf[hi->ptr[cur]], buf, nbytes);
hi->info.file[hi->ptr[cur]] = kf;
cur = ++(hi->heapnum);
memcpy(hi->info.buf[hi->ptr[cur]], buf, nbytes);
hi->info.file[hi->ptr[cur]] = kf;
int heap_cread_item(void *vp, char **dst, int *insertMode)
{
struct heap_cread_info *p = (struct heap_cread_info *) vp;
int heap_cread_item(void *vp, char **dst, int *insertMode)
{
struct heap_cread_info *p = (struct heap_cread_info *) vp;
{
hi->no_updates++;
if (isamc_p2 != isamc_p)
dict_insert(hi->reg->dict, this_name,
sizeof(ISAM_P), &isamc_p2);
}
{
hi->no_updates++;
if (isamc_p2 != isamc_p)
dict_insert(hi->reg->dict, this_name,
sizeof(ISAM_P), &isamc_p2);
}
{
hi->no_updates++;
if (isamc_p2 != isamc_p)
dict_insert(hi->reg->dict, this_name,
sizeof(ISAM_P), &isamc_p2);
}
{
hi->no_updates++;
if (isamc_p2 != isamc_p)
dict_insert(hi->reg->dict, this_name,
sizeof(ISAM_P), &isamc_p2);
}
for (i = 1; i<=nkeys; i++)
if ((r = key_file_read(kf[i], rbuf)))
key_heap_insert(hi, rbuf, r, kf[i]);
for (i = 1; i<=nkeys; i++)
if ((r = key_file_read(kf[i], rbuf)))
key_heap_insert(hi, rbuf, r, kf[i]);
hci.key = (char *) xmalloc(KEY_SIZE);
hci.key_1 = (char *) xmalloc(KEY_SIZE);
hci.key_2 = (char *) xmalloc(KEY_SIZE);
hci.key = (char *) xmalloc(KEY_SIZE);
hci.key_1 = (char *) xmalloc(KEY_SIZE);
hci.key_2 = (char *) xmalloc(KEY_SIZE);
for (i = 1; i<=nkeys; i++)
{
extract_get_fname_tmp (zh, rbuf, i);
for (i = 1; i<=nkeys; i++)
{
extract_get_fname_tmp (zh, rbuf, i);
ZINT_FORMAT "/" ZINT_FORMAT,
hi->no_iterations, hi->no_diffs);
yaz_log(YLOG_LOG, "Dict: inserts/updates/deletions: "
ZINT_FORMAT "/" ZINT_FORMAT,
hi->no_iterations, hi->no_diffs);
yaz_log(YLOG_LOG, "Dict: inserts/updates/deletions: "