From: Rusty Russell Date: Sun, 12 Jul 2009 12:51:52 +0000 (+0930) Subject: Missed part of patch. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=863dd63fcc45b7b6596861a97f72158678635feb Missed part of patch. --- diff --git a/ccan/tdb/tools/replay_trace.c b/ccan/tdb/tools/replay_trace.c index f48c7d1f..1a78a946 100644 --- a/ccan/tdb/tools/replay_trace.c +++ b/ccan/tdb/tools/replay_trace.c @@ -1264,6 +1264,9 @@ static void derive_dependencies(char *filename[], /* Create hash table for faster key lookup. */ hash = hash_ops(op, num_ops, num); + /* Now handle the hard cases: same serial number. */ + sort_ops(hash, filename, op); + /* We make the naive assumption that two ops on the same key * have to be ordered; it's overkill. */ for (i = 0; i < total_keys * 2; i++) {