bool inplace; /* have to seek before writing ? */
bool needEOF; /* check if last operation need eof */
- POOLMEM *volume; /* volume name */
-
int32_t last_file; /* last file of the volume */
int32_t current_file; /* max 65000 files */
int32_t current_block; /* max 4G blocks of 1KB */
{
int ecode;
- if (!tcbdbput2(hdb, key, val)) {
+ if (!tcbdbput(hdb, key, strlen(key), val, strlen(val)+1)) {
ecode = tcbdbecode(hdb);
fprintf(stderr, "put error: %s\n", tcbdberrmsg(ecode));
return 0;
ctime = get_current_time();
fprintf(stderr, "elt;time\n");
while (fgets(line, sizeof(line), fp)) {
+ i++;
+
hash_put(line, data);
- if (i++ == 99) {
+ if (i == 99) {
strcpy(save_key, mkey);
}
char *p;
fprintf(stderr, "elt;time\n");
while (fgets(line, sizeof(line), fp)) {
+ i++;
p = hash_get(line, data, sizeof(data));
if (p) {
p[5]='H';
fprintf(stderr, "%i;%i\n",
i/100000, (int) ((ttime - ctime)/1000));
}
- i++;
hash_free(p);
}
hash_iterinit();
while(hash_next(line, sizeof(line), data, sizeof(data)))
{
+ i++;
if (i%100000 == 0) {
ttime= get_current_time();
fprintf(stderr, "%i;%i\n",
i/100000, (int) ((ttime - ctime)/1000));
}
- i++;
}
hash_iterdone();