2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#1402] Added a note in lease_update_backlog.h

Explained why the lease updates backlog is implemented in terms of a
single std::deque, as requested in review comment.
This commit is contained in:
Marcin Siodelski
2021-01-08 10:56:45 +01:00
parent 9ab9bc9b90
commit c1c9aa87d9

View File

@@ -31,6 +31,17 @@ namespace ha {
///
/// There are two types of lease updates: "Add" and "Delete". The type
/// is specified when the lease is appended to the queue.
///
/// The backlog queue holds both "Add" and "Delete" lease updates in a
/// single std::deque container, which allows for ordering them
/// chronologically and using this ordering for queue optimizations in
/// the future. For example, if the queue contains consecutive "Delete"
/// updates for a particular IP address, the server could only delete
/// the lease once. If the queue contains multiple "Delete" lease updates
/// followed by an "Add" update, the server could skip sending "Delete"
/// updates.
///
/// Queue optimizations will be subject to future work!
class LeaseUpdateBacklog {
public: