Revision c16b7c6c

View differences:

src/Cache/blist_cache.c
366 366
  b[size++] = c->entries[i].flags;
367 367
  res = nodeid_dump(b + size, c->entries[i].id, max_write_size - size);
368 368
  if (res < 0 ) {
369
    fprintf (stderr,"cavolo1\n");
370 369
    return -1;
371 370
  }
372 371
  size += res;
373 372
  if (c->metadata_size) {
374 373
    if (c->metadata_size > max_write_size - size) {
375
      fprintf (stderr,"cavolo2\n");
376 374
      return -1;
377 375
    }
378 376
    memcpy(b + size, c->metadata + c->metadata_size * i, c->metadata_size);
src/Cache/topocache.c
349 349
  size = +4;
350 350
  res = nodeid_dump(b + size, c->entries[i].id, max_write_size - size);
351 351
  if (res < 0 ) {
352
    fprintf (stderr,"cavolo1\n");
353 352
    return -1;
354 353
  }
355 354
  size += res;
356 355
  if (c->metadata_size) {
357 356
    if (c->metadata_size > max_write_size - size) {
358
      fprintf (stderr,"cavolo2\n");
359 357
      return -1;
360 358
    }
361 359
    memcpy(b + size, c->metadata + c->metadata_size * i, c->metadata_size);

Also available in: Unified diff