Skip to content

Commit

Permalink
Properly initialize spinlock in ARAL. (netdata#17844)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalintiris authored Jun 7, 2024
1 parent 1aa8a3b commit 48305b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libnetdata/aral/aral.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ ARAL *aral_create(const char *name, size_t element_size, size_t initial_page_ele
ar->config.mmap.enabled = mmap;
strncpyz(ar->config.name, name, ARAL_MAX_NAME);
spinlock_init(&ar->aral_lock.spinlock);
spinlock_init(&ar->adders.spinlock);

if(stats) {
ar->stats = stats;
Expand Down

0 comments on commit 48305b1

Please sign in to comment.