src/siri/db/series.c
/*
 * In case we cannot write the series_id to the drop file we log critical but
 * no other action is taken.
 *
 * Warning: do not forget to call 'siridb_series_flush_dropped()'
 *
 * Return 0 if successful or -1 in case the dropped series was not written
 * to file. The series is still dropped from memory in the case.
 *
 * In case the series is flagged as 'dropped', 0 (successful) is returned.
 */
In case we cannot write the series_id to the drop file we log critical but
no other action is taken.

do not forget to call 'siridb_series_flush_dropped()'

Return 0 if successful or -1 in case the dropped series was not written
to file. The series is still dropped from memory in the case.

In case the series is flagged as 'dropped', 0 (successful) is returned.
In case we cannot write the series_id to the drop file we log critical but no other action is taken . do not forget to call ' siridb_series_flush_dropped () ' Return 0 if successful or - 1 in case the dropped series was not written to file . The series is still dropped from memory in the case . In case the series is flagged as ' dropped ' 0 ( successful ) is returned .
int siridb_series_drop(siridb_t * siridb, siridb_series_t * series)
{
    if (~series->flags & SIRIDB_SERIES_IS_DROPPED)
    {
        siridb_series_drop_prepare(siridb, series);
        return siridb_series_drop_commit(siridb, series);
    }
    return 0;
}
int siridb_series_drop ( siridb_t * siridb , siridb_series_t * series ) { if ( ~ series -> flags & SIRIDB_SERIES_IS_DROPPED ) { siridb_series_drop_prepare ( siridb , series ) ; return siridb_series_drop_commit ( siridb , series ) ; } return 0 ; }
In case we cannot write the series_id to the drop file we log critical but
 no other action is taken.
In case we cannot write the series_id to the drop file we log critical but no other action is taken .
/*
     * This function is used from build series maps in async functions.
     * Therefore a series might already be dropped, for example by a second
     * drop statement or the re-index task.
     */