Skip to content

Commit 3b84c79

Browse files
committed
Adjust comment
Signed-off-by: Stephen Sun <stephens@nvidia.com>
1 parent 727bb0e commit 3b84c79

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

orchagent/routeorch.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,10 +2436,10 @@ bool RouteOrch::removeRoute(RouteBulkContext& ctx)
24362436
/*
24372437
* Clean up the VRF routing table if
24382438
* 1. there is no routing entry in the VRF routing table and
2439-
* 2. there is no pending creating rouing entry in gRouteBulker
2440-
* The ideal way of the 2nd condition is to check pending creating entries of a certain VRF, which we can not do.
2441-
* However, we can not check whether there is a pending creating entry of a certain VRF in the gRouteBulker
2442-
* So, we use a strict condition here.
2439+
* 2. there is no pending bulk creation routing entry in gRouteBulker
2440+
* The ideal way of the 2nd condition is to check pending bulk creation entries of a certain VRF.
2441+
* However, we can not do that unless going over all entries in gRouteBulker.
2442+
* So, we use above strict conditions here
24432443
*/
24442444
if (it_route_table->second.size() == 0 && gRouteBulker.creating_entries_count() == 0)
24452445
{

0 commit comments

Comments
 (0)