mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 15:16:42 +00:00
wip
This commit is contained in:
parent
a55e01e406
commit
1d209f9168
1 changed files with 2 additions and 1 deletions
|
@ -121,9 +121,10 @@ func (shard *pipeUniqProcessorShard) writeBlock(br *blockResult) bool {
|
||||||
if len(byFields) == 0 {
|
if len(byFields) == 0 {
|
||||||
// Take into account all the columns in br.
|
// Take into account all the columns in br.
|
||||||
keyBuf := shard.keyBuf
|
keyBuf := shard.keyBuf
|
||||||
|
cs := br.getColumns()
|
||||||
for i := range br.timestamps {
|
for i := range br.timestamps {
|
||||||
keyBuf = keyBuf[:0]
|
keyBuf = keyBuf[:0]
|
||||||
for _, c := range br.getColumns() {
|
for _, c := range cs {
|
||||||
v := c.getValueAtRow(br, i)
|
v := c.getValueAtRow(br, i)
|
||||||
keyBuf = encoding.MarshalBytes(keyBuf, bytesutil.ToUnsafeBytes(c.name))
|
keyBuf = encoding.MarshalBytes(keyBuf, bytesutil.ToUnsafeBytes(c.name))
|
||||||
keyBuf = encoding.MarshalBytes(keyBuf, bytesutil.ToUnsafeBytes(v))
|
keyBuf = encoding.MarshalBytes(keyBuf, bytesutil.ToUnsafeBytes(v))
|
||||||
|
|
Loading…
Reference in a new issue