]> git.ozlabs.org Git - ccan/commitdiff
Leave groups of chainlock inside traverse.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 17 Jul 2009 03:43:58 +0000 (13:13 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 17 Jul 2009 03:43:58 +0000 (13:13 +0930)
ccan/tdb/tools/replay_trace.c

index 88a3b64e7c64aa030734dd8de4fa72ce31f58ffd..087bd876acfd636f3af218423d93ccd0dd4e9cee 100644 (file)
@@ -435,8 +435,10 @@ static void op_analyze_traverse(const char *filename,
 
        op[start].group_len = op_num - start;
 
 
        op[start].group_len = op_num - start;
 
+       /* Don't roll in nested traverse/chainlock */
        for (i = start; i <= op_num; i++)
        for (i = start; i <= op_num; i++)
-               op[i].group_start = start;
+               if (!op[i].group_start)
+                       op[i].group_start = start;
 }
 
 /* Keep -Wmissing-declarations happy: */
 }
 
 /* Keep -Wmissing-declarations happy: */