mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
lib/storage: fix unaligned access on 32-bit architectures.
The bug has been introduced at a171916ef5
This commit is contained in:
parent
4b0cefc4bd
commit
001750c239
2 changed files with 4 additions and 2 deletions
|
@ -6,6 +6,8 @@ sort: 15
|
||||||
|
|
||||||
## tip
|
## tip
|
||||||
|
|
||||||
|
BUGFIX: vmstorage: fix `unaligned 64-bit atomic operation` panic on 32-bit architectures (arm and 386). The panic has been introduced in v1.67.0
|
||||||
|
|
||||||
|
|
||||||
## [v1.67.0](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.67.0)
|
## [v1.67.0](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.67.0)
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,6 @@ type Storage struct {
|
||||||
hourlySeriesLimitRowsDropped uint64
|
hourlySeriesLimitRowsDropped uint64
|
||||||
dailySeriesLimitRowsDropped uint64
|
dailySeriesLimitRowsDropped uint64
|
||||||
|
|
||||||
isReadOnly uint32
|
|
||||||
|
|
||||||
path string
|
path string
|
||||||
cachePath string
|
cachePath string
|
||||||
retentionMsecs int64
|
retentionMsecs int64
|
||||||
|
@ -137,6 +135,8 @@ type Storage struct {
|
||||||
// metricIDs, since it usually requires 1 bit per deleted metricID.
|
// metricIDs, since it usually requires 1 bit per deleted metricID.
|
||||||
deletedMetricIDs atomic.Value
|
deletedMetricIDs atomic.Value
|
||||||
deletedMetricIDsUpdateLock sync.Mutex
|
deletedMetricIDsUpdateLock sync.Mutex
|
||||||
|
|
||||||
|
isReadOnly uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
// OpenStorage opens storage on the given path with the given retentionMsecs.
|
// OpenStorage opens storage on the given path with the given retentionMsecs.
|
||||||
|
|
Loading…
Reference in a new issue