~tokyocabinet/tokyocabinet/c99-posix-trunk

« back to all changes in this revision

Viewing changes to tcftest.c

  • Committer: Baptiste Lepilleur
  • Date: 2009-07-30 19:32:21 UTC
  • Revision ID: blep@users.sourceforge.net-20090730193221-ap333ajj7u5ccqz9
Tags: tokyocabinet-1.4.25
releaseĀ 1.4.25

Show diffs side-by-side

added added

removed removed

Lines of Context:
752
752
    eprint(fdb, "tcfdbopen");
753
753
    err = true;
754
754
  }
 
755
  TCFDB *fdbdup = tcfdbnew();
 
756
  if(tcfdbopen(fdbdup, path, FDBOREADER)){
 
757
    eprint(fdb, "(validation)");
 
758
    err = true;
 
759
  } else if(tcfdbecode(fdbdup) != TCETHREAD){
 
760
    eprint(fdb, "(validation)");
 
761
    err = true;
 
762
  }
 
763
  tcfdbdel(fdbdup);
755
764
  iprintf("writing:\n");
756
765
  for(int i = 1; i <= rnum; i++){
757
766
    char buf[RECBUFSIZ];