This commit is contained in:
2026-05-31 20:01:28 +00:00
parent e7ec6083cb
commit db5ecd3dfd
28 changed files with 2090 additions and 2155 deletions

9
qb.go
View File

@@ -31,6 +31,9 @@ type TimestampCompressor interface {
Renew()
Lock()
Unlock()
CreateDecompressor() TimestampDecompressor
Snapshot() ([][]byte, int) // chunks, size
Offset() int
//LastTimestamp() uint32
}
@@ -43,6 +46,10 @@ type ValueCompressor interface {
Renew() // створює новий conbuf, але не чіпає state
Lock()
Unlock()
// fracDigits
CreateDecompressor(byte) ValueDecompressor
Snapshot() ([][]byte, int) // chunks, size
Offset() int
//LastValue() float64
}
@@ -66,6 +73,7 @@ const (
WrongResultCodeBug AbortCode = 6
RemoveREDOFileFailed AbortCode = 7
FailedAtreeRequest AbortCode = 8
FailedGetPageNumber AbortCode = 9
UnknownTxLogRecordTypeBug AbortCode = 11
HasTimestampNoValueBug AbortCode = 12
NoMetricBug AbortCode = 13
@@ -77,6 +85,7 @@ const (
FailedFreeListSerialize AbortCode = 19
UnknownWorkerQueueItemBug AbortCode = 20
UnknownMetricWaitQueueItemBug AbortCode = 21
RepeatableLock AbortCode = 22
//
GetRecoveryRecipeFailed AbortCode = 26
LoadSnapshotFailed AbortCode = 27