Skip to content

Commit

Permalink
Merge pull request #1917 from emeroad/TraceV2/TraceFormatV2
Browse files Browse the repository at this point in the history
#1819 trace format v2
  • Loading branch information
emeroad authored Jul 19, 2016
2 parents 93e166b + 2f9a694 commit a6d524b
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ public int compare(SpanEventBo o1, SpanEventBo o2) {
final int asyncId2 = o2.getAsyncId();
final int asyncIdCompare = Integer.compare(asyncId1, asyncId2);
if (asyncIdCompare != 0) {
if (asyncId1 == -1) {
return -1;
}
if (asyncId2 == -1) {
return -1;
}
// bug Comparison method violates its general contract!
// TODO temporary fix
// if (asyncId1 == -1) {
// return -1;
// }
// if (asyncId2 == -1) {
// return -1;
// }
return asyncIdCompare;
}
return Integer.compare(o1.getAsyncSequence(), o2.getAsyncSequence());
Expand Down

0 comments on commit a6d524b

Please # to comment.