Skip to content

Commit

Permalink
Re-organize the code to avoid conflict in cherry-pick
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sun <[email protected]>
  • Loading branch information
stephenxs committed Dec 25, 2024
1 parent ef40305 commit 3c79f13
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions orchagent/flexcounterorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ void FlexCounterOrch::doTask(Consumer &consumer)
}
}
}
else if (field == BULK_CHUNK_SIZE_FIELD)
{
bulk_chunk_size = value;
}
else if (field == BULK_CHUNK_SIZE_PER_PREFIX_FIELD)
{
bulk_chunk_size_per_counter = value;
}
else if(field == FLEX_COUNTER_STATUS_FIELD)
{
// Currently, the counters are disabled for polling by default
Expand Down Expand Up @@ -253,14 +261,6 @@ void FlexCounterOrch::doTask(Consumer &consumer)
// If it is exist and the value is 'true' we need to skip the iteration in order to delay the counter creation.
// The field will clear out and counter will be created when enable_counters script is called.
}
else if (field == BULK_CHUNK_SIZE_FIELD)
{
bulk_chunk_size = value;
}
else if (field == BULK_CHUNK_SIZE_PER_PREFIX_FIELD)
{
bulk_chunk_size_per_counter = value;
}
else
{
SWSS_LOG_NOTICE("Unsupported field %s", field.c_str());
Expand Down

0 comments on commit 3c79f13

Please sign in to comment.