Browse Source

Leave groups of chainlock inside traverse.

Rusty Russell 16 years ago
parent
commit
21413347e7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      ccan/tdb/tools/replay_trace.c

+ 3 - 1
ccan/tdb/tools/replay_trace.c

@@ -435,8 +435,10 @@ static void op_analyze_traverse(const char *filename,
 
 	op[start].group_len = op_num - start;
 
+	/* Don't roll in nested traverse/chainlock */
 	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: */