Skip to content

[2.8] MOD-6058: Circular Buffer#5381

Merged
raz-mon merged 1 commit into2.8from
backport-5297-to-2.8
Dec 19, 2024
Merged

[2.8] MOD-6058: Circular Buffer#5381
raz-mon merged 1 commit into2.8from
backport-5297-to-2.8

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

Description

Backport of #5297 to 2.8.

* 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 85.06%. Comparing base (b7eaa56) to head (06de1dd).
Report is 1 commits behind head on 2.8.

Files with missing lines Patch % Lines
src/util/circular_buffer.c 98.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.8    #5381      +/-   ##
==========================================
+ Coverage   85.02%   85.06%   +0.03%     
==========================================
  Files         195      196       +1     
  Lines       34117    34197      +80     
==========================================
+ Hits        29009    29088      +79     
- Misses       5108     5109       +1     

☔ 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
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 19, 2024
@raz-mon raz-mon added this pull request to the merge queue Dec 19, 2024
Merged via the queue into 2.8 with commit c656ea5 Dec 19, 2024
@raz-mon raz-mon deleted the backport-5297-to-2.8 branch December 19, 2024 17:30
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