prometheus/tsdb/wlog
Robert Fratto 9e4e2a4a51
wlog: use filepath for getting checkpoint number
This changes usage of path to be replaced with path/filepath, allowing
for filepath.Base to properly return the base directory on systems where
`/` is not the standard path separator.

This resolves an issue on Windows where intermediate folders containing
a `.` were incorrectly considered to be a part of the checkpoint name.

Related to grafana/agent#3826.

Signed-off-by: Robert Fratto <robertfratto@gmail.com>
2023-05-10 12:38:02 -04:00
..
checkpoint.go Merge remote-tracking branch 'upstream/main' into fix-conflict 2022-10-12 14:20:02 +05:30
checkpoint_test.go Merge remote-tracking branch 'upstream/main' into fix-conflict 2022-10-12 14:20:02 +05:30
live_reader.go style: Replace else if cascades with switch 2023-04-19 17:22:31 +02:00
reader.go Use errors.Is to check for a specific error 2022-12-29 23:23:07 +08:00
reader_test.go lint: Adjust to the lint warnings raised by current versions of golint-ci 2023-04-19 17:10:10 +02:00
watcher.go wlog: use filepath for getting checkpoint number 2023-05-10 12:38:02 -04:00
watcher_test.go histograms: Add remote-write support for Float Histograms (#11817) 2023-01-13 16:39:20 +05:30
wlog.go Feat: metrics for head_chunks & wal folders (#12013) 2023-03-02 15:25:56 +05:30
wlog_test.go Merge branch 'main' into linter/nilerr 2023-04-19 19:56:39 +02:00