Skip to content
Snippets Groups Projects
Commit 722a4965 authored by lhausamm's avatar lhausamm Committed by Loic Hausammann
Browse files

Write only snapshot or index file

parent e8ae27ef
Branches
Tags
1 merge request!502Logger
...@@ -5626,8 +5626,9 @@ void engine_check_for_dumps(struct engine *e) { ...@@ -5626,8 +5626,9 @@ void engine_check_for_dumps(struct engine *e) {
engine_print_stats(e); engine_print_stats(e);
#ifdef WITH_LOGGER #ifdef WITH_LOGGER
engine_dump_index(e); engine_dump_index(e);
#else
engine_dump_snapshot(e);
#endif #endif
engine_dump_snapshot(e);
} else if (e->ti_next_stats < e->ti_next_snapshot) { } else if (e->ti_next_stats < e->ti_next_snapshot) {
...@@ -5659,8 +5660,9 @@ void engine_check_for_dumps(struct engine *e) { ...@@ -5659,8 +5660,9 @@ void engine_check_for_dumps(struct engine *e) {
/* Dump snapshot */ /* Dump snapshot */
#ifdef WITH_LOGGER #ifdef WITH_LOGGER
engine_dump_index(e); engine_dump_index(e);
#endif #else
engine_dump_snapshot(e); engine_dump_snapshot(e);
#endif
} else if (e->ti_next_stats > e->ti_next_snapshot) { } else if (e->ti_next_stats > e->ti_next_snapshot) {
...@@ -5680,8 +5682,9 @@ void engine_check_for_dumps(struct engine *e) { ...@@ -5680,8 +5682,9 @@ void engine_check_for_dumps(struct engine *e) {
/* Dump snapshot */ /* Dump snapshot */
#ifdef WITH_LOGGER #ifdef WITH_LOGGER
engine_dump_index(e); engine_dump_index(e);
#endif #else
engine_dump_snapshot(e); engine_dump_snapshot(e);
#endif
/* Let's fake that we are at the stats dump time */ /* Let's fake that we are at the stats dump time */
e->ti_current = e->ti_next_stats; e->ti_current = e->ti_next_stats;
...@@ -5718,8 +5721,9 @@ void engine_check_for_dumps(struct engine *e) { ...@@ -5718,8 +5721,9 @@ void engine_check_for_dumps(struct engine *e) {
/* Dump... */ /* Dump... */
#ifdef WITH_LOGGER #ifdef WITH_LOGGER
engine_dump_index(e); engine_dump_index(e);
#endif #else
engine_dump_snapshot(e); engine_dump_snapshot(e);
#endif
/* ... and find the next output time */ /* ... and find the next output time */
engine_compute_next_snapshot_time(e); engine_compute_next_snapshot_time(e);
...@@ -7166,7 +7170,7 @@ void engine_config(int restart, struct engine *e, struct swift_params *params, ...@@ -7166,7 +7170,7 @@ void engine_config(int restart, struct engine *e, struct swift_params *params,
"size, please use it carefully"); "size, please use it carefully");
#endif #endif
/* Find the time of the first output */ /* Find the time of the first snapshot output */
engine_compute_next_snapshot_time(e); engine_compute_next_snapshot_time(e);
/* Find the time of the first statistics output */ /* Find the time of the first statistics output */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment