Changeset c862ad1 for lib


Ignore:
Timestamp:
08/16/18 14:12:54 (2 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, master, ringdecrementfix, ringperformance
Children:
2044185
Parents:
f27e335
Message:

Only replace packet->order if the format has not set it already.

This was breaking our timestamp "caching" in format_etsilive, by
replacing packet->order with an internal sequence number that is
intended for packets which do not yet have a suitable order value
assigned to them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r47d4f8c rc862ad1  
    10081008                                ++libtrace->accepted_packets;
    10091009                        }
    1010                         trace_packet_set_order(packet, libtrace->sequence_number);
     1010                        if (packet->order == 0) {
     1011                                trace_packet_set_order(packet, libtrace->sequence_number);
     1012                        }
    10111013                        ++libtrace->sequence_number;
    10121014                        if (!libtrace_parallel && packet->trace == libtrace)
Note: See TracChangeset for help on using the changeset viewer.