Files
scylladb/test/boost
Benny Halevy e29994b2aa topology: add_node, unindex_node: make exception safe
Current if index_node throws when trying to
add an already indexed node, pop_node might
unindex the existing node instead of the new one.

Instead, with this change, unindex_node looks up
the node by its pointer and removed it from the
index map only if it's found there so to clean up
safely after index_node throws (at any stage).

Add a unit test to verify that.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
2023-04-14 17:51:05 +03:00
..
2023-02-15 11:01:50 +02:00
2023-04-13 14:57:00 +03:00
2023-02-15 11:01:50 +02:00
2023-02-15 11:01:50 +02:00
2022-11-16 16:30:38 +02:00
2023-02-15 11:09:04 +02:00
2023-02-15 11:01:50 +02:00