]> git.ozlabs.org Git - ccan/commitdiff
Missed part of patch.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 12 Jul 2009 12:51:52 +0000 (22:21 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 12 Jul 2009 12:51:52 +0000 (22:21 +0930)
ccan/tdb/tools/replay_trace.c

index f48c7d1f3474e56f0723606ef3a161cec577f813..1a78a94697233464e58147a43ea011b1cf554e0d 100644 (file)
@@ -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++) {