X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftools%2Freplay_trace.c;h=10f9ebf2c064a98a124d359049449790417608b7;hp=f697a13787995395df869c2c742c46857ce5f13e;hb=25db0fb4908967e045ff3c20f6eb98f8f43f0468;hpb=41391dd9a73e1aa8bb8193cf6335542c703f20e9;ds=sidebyside diff --git a/ccan/tdb/tools/replay_trace.c b/ccan/tdb/tools/replay_trace.c index f697a137..10f9ebf2 100644 --- a/ccan/tdb/tools/replay_trace.c +++ b/ccan/tdb/tools/replay_trace.c @@ -98,7 +98,6 @@ enum op_type { OP_TDB_CHAINUNLOCK, OP_TDB_CHAINLOCK_READ, OP_TDB_CHAINUNLOCK_READ, - OP_TDB_INCREMENT_SEQNUM_NONBLOCK, OP_TDB_PARSE_RECORD, OP_TDB_EXISTS, OP_TDB_STORE, @@ -593,9 +592,6 @@ unsigned run_ops(struct tdb_context *tdb, case OP_TDB_CHAINUNLOCK_READ: try(tdb_chainunlock_read(tdb, op[i].key), op[i].ret); break; - case OP_TDB_INCREMENT_SEQNUM_NONBLOCK: - tdb_increment_seqnum_nonblock(tdb); - break; case OP_TDB_PARSE_RECORD: try(tdb_parse_record(tdb, op[i].key, get_len, NULL), op[i].ret); @@ -932,7 +928,7 @@ int main(int argc, char *argv[]) gettimeofday(&start, NULL); /* Tell them all to go! Any write of sufficient length will do. */ - if (write(fds[1], hashsize, i) != 1) + if (write(fds[1], hashsize, i) != i) err(1, "Writing to wakeup pipe"); for (i = 0; i < argc - 2; i++) {