Add sequence number support for update queue and show it in introspect. Add
test cases for each API in the update queue class.
The sequence number is 64bits and starts at 1. Each new addition to the end of
the queue gets the next incremented value. If an item is inserted at a non-end
position (which happens only with markers), it gets the sequence number of its
successor, if one exists; else it gets the next incremented value.
Change-Id: I0f9c6a4614d1644e8acf5c05669214d8f63a54e9
Closes-Bug: #1578436
(cherry picked from commit 2af1a8ed4468e4c5e2af6f9e4f8735f9c99884a1)
Reviewed: https:/ /review. opencontrail. org/20014 github. org/Juniper/ contrail- controller/ commit/ 81408ebad041e2c c24357d50669ba9 5a603ac1c4
Committed: http://
Submitter: Zuul
Branch: R3.0
commit 81408ebad041e2c c24357d50669ba9 5a603ac1c4
Author: Tapan Karwa <email address hidden>
Date: Thu May 5 16:35:36 2016 -0700
Add sequence number support for update queue
Add sequence number support for update queue and show it in introspect. Add
test cases for each API in the update queue class.
The sequence number is 64bits and starts at 1. Each new addition to the end of
the queue gets the next incremented value. If an item is inserted at a non-end
position (which happens only with markers), it gets the sequence number of its
successor, if one exists; else it gets the next incremented value.
Change-Id: I0f9c6a4614d164 4e8acf5c0566921 4d8f63a54e9 5e2af6f9e4f8735 f9c99884a1)
Closes-Bug: #1578436
(cherry picked from commit 2af1a8ed4468e4c