Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@YaacovHazan
Copy link
Collaborator

@YaacovHazan YaacovHazan commented Oct 31, 2023

The PR includes some refactoring and cleanup around the following:
object_generator

  • generate_key(), a new function that generates a key and stores it
    inside internal buffer (no need for a buffer at client level)

import_object_generator

  • Align it to object_generator APIs of getting key/value/expire
  • read_next_item - new function for reading the next item before
    creating SET command
  • read_next_key - new function for reading (pointing) to the next
    key before creating the GET command

data_object

  • Removed.
    We were already getting key/value/expire separately. Now that
    data-import and verify-data also moved to do it like that,
    we could remove it completely.

verify_client

  • Unify the craate_request with its base class, and derive the
    create_x_request functions.

The PR includes some refactoring and cleanup around the following:
object_generator
    - generate_key(), a new function that generates a key and stores it
      inside internal buffer (no need for a buffer at client level)
import_object_generator
    - Align it to object_generator APIs of getting key/value/expire
    - read_next_item - new function for reading the next item before
      creating SET command
    - read_next_key - new function for reading (pointing) to the next
      key before creating the GET command
data_object
    - removed.
      We were already getting key/value/expire separately. Now that
      data-import and verify-data also moved to do it like that,
      we could remove it completely.
verify_client
    - unify the craate_request with its base class, and derive the
      create_x_request functions.
@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (a5e6f19) 56.88% compared to head (7ffe99b) 62.22%.

Files Patch % Lines
client.cpp 28.12% 23 Missing ⚠️
memtier_benchmark.cpp 33.33% 2 Missing ⚠️
shard_connection.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #240      +/-   ##
==========================================
+ Coverage   56.88%   62.22%   +5.34%     
==========================================
  Files          21       21              
  Lines        4388     4347      -41     
==========================================
+ Hits         2496     2705     +209     
+ Misses       1892     1642     -250     

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

@filipecosta90 filipecosta90 linked an issue Nov 16, 2023 that may be closed by this pull request
@filipecosta90 filipecosta90 linked an issue Nov 16, 2023 that may be closed by this pull request
filipecosta90
filipecosta90 previously approved these changes Nov 16, 2023
Copy link
Collaborator

@filipecosta90 filipecosta90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

filipecosta90
filipecosta90 previously approved these changes Nov 18, 2023
@filipecosta90 filipecosta90 self-requested a review December 2, 2023 23:30
@filipecosta90 filipecosta90 merged commit e08d4cf into redis:master Dec 2, 2023
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.

Error reported when running with "--data-import"

2 participants