diff options
author | Dmitry Valter <d-valter@yandex-team.ru> | 2022-06-15 13:58:16 +0000 |
---|---|---|
committer | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2022-07-25 14:21:42 +0000 |
commit | 833eaf3e97577cab97d6d5eedc5de29a5f862402 (patch) | |
tree | d840d42654a19f610afb897d96d323e2968deb41 | |
parent | 2067f6e5b0611191266c22d29f6e4dcb13f2b4ce (diff) |
Fix statseg v2 error index zero id skip
Don't skip zero id error counters as it's not a pointer.
Type: fix
Signed-off-by: Dmitry Valter <d-valter@yandex-team.ru>
Change-Id: I907bb9f110d8bf5db6326ae654206ddc83187044
-rw-r--r-- | adapter/statsclient/statseg_v2.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/statsclient/statseg_v2.go b/adapter/statsclient/statseg_v2.go index 1f8aaeb..11a3679 100644 --- a/adapter/statsclient/statseg_v2.go +++ b/adapter/statsclient/statseg_v2.go @@ -94,7 +94,7 @@ func (ss *statSegmentV2) CopyEntryData(segment dirSegment, index uint32) adapter dirEntry := (*statSegDirectoryEntryV2)(segment) typ := getStatType(dirEntry.directoryType, ss.getErrorVector() != nil) // skip zero pointer value - if typ != adapter.ScalarIndex && typ != adapter.Empty && dirEntry.unionData == 0 { + if typ != adapter.ScalarIndex && typ != adapter.Empty && typ != adapter.ErrorIndex && dirEntry.unionData == 0 { debugf("data pointer not defined for %s", dirEntry.name) return nil } |