Enhancement of Dump cap algorithm
Added support for collecting mini dump data incase available
dump size is less than maximum dump size. Introduced minimum
dump size to achieve this.
Change-Id: I266ff6ea71443974a99f6f5fe54fb9f12c90f2ab
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/dump_manager.hpp b/dump_manager.hpp
index 9856f1e..ef3cd22 100644
--- a/dump_manager.hpp
+++ b/dump_manager.hpp
@@ -64,7 +64,6 @@
bus(bus),
eventLoop(event.get()),
lastEntryId(0),
- activeDumpCount(0),
dumpWatch(eventLoop,
IN_NONBLOCK,
IN_CLOSE_WRITE | IN_CREATE,
@@ -137,11 +136,9 @@
*/
void removeWatch(const fs::path& path);
- /** @brief Calculate per dump allowed size based on number of
- * existing dumps and total dump size. Returns
- * allowed size for a dump in kilo bytes.
- * @returns 0 indicates no space is available in dump location
- * non zero value indicates size of one dump.
+ /** @brief Calculate per dump allowed size based on the available
+ * size in the dump location.
+ * @returns dump size in kilobytes.
*/
size_t getAllowedSize();
@@ -157,9 +154,6 @@
/** @brief Id of the last Dump entry */
uint32_t lastEntryId;
- /** @brief active dump count */
- uint32_t activeDumpCount;
-
/** @brief Dump main watch object */
Watch dumpWatch;