#5 -- fix deleting time series file

This commit is contained in:
Anton Romanov 2021-08-11 14:48:43 +04:00
parent 662e1f6588
commit c5190117c1

View File

@ -103,6 +103,7 @@ public class DbFileService implements DbService {
public void deleteTimeSeries(TimeSeriesSet set, String timeSeriesKey) throws IOException { public void deleteTimeSeries(TimeSeriesSet set, String timeSeriesKey) throws IOException {
validateDb(set, timeSeriesKey); validateDb(set, timeSeriesKey);
Files.delete(getTimeSeriesFile(set, timeSeriesKey).toPath()); Files.delete(getTimeSeriesFile(set, timeSeriesKey).toPath());
Files.delete(getTimeSeriesMetaFile(set, timeSeriesKey).toPath());
} }
@Override @Override