1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

path: use original sequence number of only one source is used

This commit is contained in:
Steffen Vogel 2019-04-02 16:01:56 +02:00
parent 289cd6e10c
commit 5c6f5cfeba

View file

@ -140,7 +140,7 @@ int path_init(struct path *p)
p->enabled = 1;
p->poll = -1;
p->queuelen = DEFAULT_QUEUE_LENGTH;
p->original_sequence_no = 0;
p->original_sequence_no = -1;
p->state = STATE_INITIALIZED;
@ -288,6 +288,9 @@ int path_prepare(struct path *p)
return ret;
}
if (p->original_sequence_no == -1)
p->original_sequence_no = vlist_length(&p->sources) == 1;
p->state = STATE_PREPARED;
return 0;