Reset entryID to 0 after eraseAll.
After eraseAll(), reset the entryID to 0, so that the entry IDs reset,
and the ipmi sel's entry ID resets.
Tested: Run `ipmitool sel clear&&ipmitool sel list`:
1 | 05/23/21 | 09:01:11 UTC | Event Logging Disabled #0x8b | Log area reset/cleared | Asserted
Signed-off-by: Lotus Xu <xuxiaohan@bytedance.com>
Change-Id: Ic244f4a972a0c4c367722361baa548676c394b31
diff --git a/log_manager.hpp b/log_manager.hpp
index e04c6b7..ad88f10 100644
--- a/log_manager.hpp
+++ b/log_manager.hpp
@@ -118,6 +118,7 @@
++iter;
erase(e);
}
+ entryId = 0;
}
/** @brief Returns the count of high severity errors