This commit is contained in:
2026-06-14 23:12:03 +03:00
parent 181031a753
commit b32279deaf
35 changed files with 1395 additions and 1062 deletions

View File

@@ -49,14 +49,19 @@ type MetricAdd struct {
MetricID uint32
MetricType qb.MetricType
FracDigits byte
ResultCh chan struct{}
ResultCh chan byte
}
type MetricDelete struct {
MetricID uint32
FreeIndexPages []uint32
FreeDataPages []uint32
ResultCh chan struct{}
ResultCh chan byte
}
type MeasuresAppendResult struct {
ResultCode byte
WrittenCount int
}
type MeasuresAppendWithGrow struct {
@@ -72,7 +77,7 @@ type MeasuresAppendWithGrow struct {
IndexLevelTails []IndexLevelTail
ResultCode byte
WrittenCount int
ResultCh chan AppendMeasuresResult
ResultCh chan MeasuresAppendResult
}
type MeasuresAppend struct {
@@ -83,14 +88,14 @@ type MeasuresAppend struct {
Values []byte
ResultCode byte
WrittenCount int
ResultCh chan AppendMeasuresResult
ResultCh chan MeasuresAppendResult
}
type MeasuresDelete struct {
MetricID uint32
FreeIndexPages []uint32
FreeDataPages []uint32
ResultCh chan struct{}
ResultCh chan byte
}
// WRITE RESULTS
@@ -100,7 +105,7 @@ type MeasuresAppendCommited struct {
MetricID uint32
ResultCode byte
WrittenCount int
ResultCh chan AppendMeasuresResult
ResultCh chan MeasuresAppendResult
}
type MeasuresAppendWithGrowCommited struct {
@@ -109,20 +114,20 @@ type MeasuresAppendWithGrowCommited struct {
Index []IndexLevelTail
ResultCode byte
WrittenCount int
ResultCh chan AppendMeasuresResult
ResultCh chan MeasuresAppendResult
}
type MeasuresDeleteCommited struct {
MetricID uint32
ResultCh chan struct{}
ResultCh chan byte
}
type MetricAddCommited struct {
MetricID uint32
ResultCh chan struct{}
ResultCh chan byte
}
type MetricDeleteCommited struct {
MetricID uint32
ResultCh chan struct{}
ResultCh chan byte
}