Skip to content

Commit

Permalink
Capacity is dynamic and could be set to less than the size of the list
Browse files Browse the repository at this point in the history
  • Loading branch information
brentengelbrecht authored Nov 22, 2022
1 parent f4f1f01 commit 77be571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion key_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ bool is_key_list_full(KEY_LIST_PTR q) {
return true;
}
pthread_mutex_lock(q->lock);
r = q->capacity == q->size;
r = q->capacity <= q->size;
pthread_mutex_unlock(q->lock);
return r;
}
Expand Down

0 comments on commit 77be571

Please sign in to comment.