X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Ftools%2Freplay_trace.c;h=1a78a94697233464e58147a43ea011b1cf554e0d;hb=863dd63fcc45b7b6596861a97f72158678635feb;hp=f48c7d1f3474e56f0723606ef3a161cec577f813;hpb=555c01c93fdd67f86f5f943ac2d4eae18eb3894c;p=ccan 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++) {