mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
vendor: update prometheus/tsdb
This commit is contained in:
parent
6861b3d03d
commit
6aee36ac3b
2
vendor/github.com/prometheus/tsdb/db.go
generated
vendored
2
vendor/github.com/prometheus/tsdb/db.go
generated
vendored
|
@ -710,7 +710,7 @@ func (db *DB) ensureHead(t int64) error {
|
|||
}
|
||||
// Create another block of buffer in front if the DB is initialized or retrieving
|
||||
// new data after a long gap.
|
||||
// This ensures we always have a full block width if append window.
|
||||
// This ensures we always have a full block width of append window.
|
||||
if addBuffer {
|
||||
if _, err := db.createHeadBlock(mint-int64(db.opts.MinBlockDuration), mint); err != nil {
|
||||
return err
|
||||
|
|
1
vendor/github.com/prometheus/tsdb/head.go
generated
vendored
1
vendor/github.com/prometheus/tsdb/head.go
generated
vendored
|
@ -302,6 +302,7 @@ func (h *HeadBlock) Snapshot(snapshotDir string) error {
|
|||
return errors.Wrap(err, "write snapshot")
|
||||
}
|
||||
meta.ULID = uid
|
||||
meta.MaxTime = h.highTimestamp
|
||||
|
||||
if err = writeMetaFile(tmp, meta); err != nil {
|
||||
return errors.Wrap(err, "write merged meta")
|
||||
|
|
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
|
@ -853,10 +853,10 @@
|
|||
"revisionTime": "2016-04-11T19:08:41Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "kT9X/dKXjFCoxV48N2C9NZhPRvA=",
|
||||
"checksumSHA1": "GgHaU/6pJjJ7I8aTfaZXnV/OWxA=",
|
||||
"path": "github.com/prometheus/tsdb",
|
||||
"revision": "d492bfd973c24026ab784c1c1821af426bc80e90",
|
||||
"revisionTime": "2017-06-30T13:17:34Z"
|
||||
"revision": "969c407335d68cbd8154dcd1bca6259786b27f53",
|
||||
"revisionTime": "2017-07-12T11:54:31Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "9EH3v+JdbikCUJAgD4VEOPIaWfs=",
|
||||
|
|
Loading…
Reference in a new issue