src/siri/db/series.c
/*
 * Return 0 if successful or EOF if not.
 *
 * Logging is done but no error is raised in case of failure.
 *
 * This function flushes the dropped file and sets the dropped series flag
 * for groups update thread.
 */
Return 0 if successful or EOF if not.
Logging is done but no error is raised in case of failure.

This function flushes the dropped file and sets the dropped series flag
for groups update thread.
Return 0 if successful or EOF if not . Logging is done but no error is raised in case of failure . This function flushes the dropped file and sets the dropped series flag for groups update thread .
int siridb_series_flush_dropped(siridb_t * siridb)
{
    int rc = 0;
    if (siridb->dropped_fp == NULL && SERIES_open_dropped_file(siridb))
    {
        rc = -1;
    }
    else if (fflush(siridb->dropped_fp))
    {
        SIRIDB_GET_FN(fn, siridb->dbpath, SIRIDB_DROPPED_FN)
        log_critical("Could not flush dropped file: '%s'", fn);
        rc = -1;
    }
    siridb->groups->flags |= GROUPS_FLAG_DROPPED_SERIES;
    return rc;
}
int siridb_series_flush_dropped ( siridb_t * siridb ) { int rc = 0 ; if ( siridb -> dropped_fp == NULL && SERIES_open_dropped_file ( siridb ) ) { rc = -1 ; } else if ( fflush ( siridb -> dropped_fp ) ) { SIRIDB_GET_FN ( fn , siridb -> dbpath , SIRIDB_DROPPED_FN ) log_critical ( " " , fn ) ; rc = -1 ; } siridb -> groups -> flags |= GROUPS_FLAG_DROPPED_SERIES ; return rc ; }
Return 0 if successful or EOF if not.
Return 0 if successful or EOF if not .