Stats: Updated wrong slot on new vector 42/16542/2
authorOle Troan <[email protected]>
Wed, 19 Dec 2018 11:28:46 +0000 (12:28 +0100)
committerOle Trøan <[email protected]>
Wed, 19 Dec 2018 14:25:59 +0000 (14:25 +0000)
Change-Id: Ibf6008fd4e780a8c6fa676c7f7ba2f1cd98e72a9
Signed-off-by: Ole Troan <[email protected]>
src/vpp/stats/stat_segment.c

index 9b6b37b..793936b 100644 (file)
@@ -115,7 +115,6 @@ vlib_stats_pop_heap (void *cm_arg, void *oldheap, stat_directory_type_t type)
       strncpy (e.name, stat_segment_name, 128 - 1);
       e.type = type;
       vec_add1 (sm->directory_vector, e);
-      vector_index++;
     }
 
   stat_segment_directory_entry_t *ep = &sm->directory_vector[vector_index];