Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP Address Validation and Key Expiration Optimization #1622

Closed
wants to merge 2 commits into from

Conversation

stav-bentov
Copy link
Contributor

IP Address Validation in Node Address Update:

  • Ensures that the node address is updated only when a valid IP address is obtained.
  • This prevents erroneous updates with invalid or placeholder values (e.g., an empty string or "?").

Optimize Key Expiration Check with Branch Prediction Hint:

  • Introduces a condition to leverage branch prediction for improved performance.
  • The added check reduces unnecessary evaluations when the database size (dbSize(db)) is 0.

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.03%. Comparing base (9071a5c) to head (4841885).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1622      +/-   ##
============================================
+ Coverage     70.85%   71.03%   +0.17%     
============================================
  Files           121      121              
  Lines         65169    65171       +2     
============================================
+ Hits          46176    46291     +115     
+ Misses        18993    18880     -113     
Files with missing lines Coverage Δ
src/cluster_legacy.c 87.39% <100.00%> (+0.18%) ⬆️
src/db.c 89.73% <100.00%> (+0.16%) ⬆️

... and 8 files with indirect coverage changes

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