Skip to content

[8.0] MOD-6058: Circular Buffer#5384

Merged
raz-mon merged 1 commit into8.0from
backport-5297-to-8.0
Dec 19, 2024
Merged

[8.0] MOD-6058: Circular Buffer#5384
raz-mon merged 1 commit into8.0from
backport-5297-to-8.0

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

Description

Backport of #5297 to 8.0.

* wip

* WIP

* Add unit-tests for the Circular Buffer

* Formatting

* Add coverage to itemSize

* Add spaces

* Add coverage for ResetReader

* Address review

* Fix item_count update to be atomic

* Add multi-threaded cpp tests for add, reserve functions

* Touchup

* Format test file

* Add comments and some thread-safe modifications

* Fix indentation

* Remove new-line

* Touchup

* Fix multi-threading test

* Modify test

* Remove comment

* Add assertion for item-size and item-cap

* Modify assertion

* Add wasFull output variable to the reserve api

* Initialize wasFull to false

* Set wasFull in false case

(cherry picked from commit dae453b)
@codecov
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 98.75000% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.08%. Comparing base (43483e7) to head (1fffcec).
Report is 1 commits behind head on 8.0.

Files with missing lines Patch % Lines
src/util/circular_buffer.c 98.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              8.0    #5384      +/-   ##
==========================================
+ Coverage   87.06%   87.08%   +0.02%     
==========================================
  Files         195      196       +1     
  Lines       34761    34841      +80     
==========================================
+ Hits        30264    30341      +77     
- Misses       4497     4500       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@raz-mon raz-mon added this pull request to the merge queue Dec 19, 2024
Merged via the queue into 8.0 with commit 04c68f8 Dec 19, 2024
@raz-mon raz-mon deleted the backport-5297-to-8.0 branch December 19, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant