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

Rename macros in config.h. #257

Merged
merged 4 commits into from
Apr 23, 2024
Merged

Conversation

lipzhu
Copy link
Contributor

@lipzhu lipzhu commented Apr 8, 2024

This patch try to do following things:

  1. Rename redis_* and REDIS_* macros defined in config.h to valkey_*, VALKEY_* and update associated used files. (redis_fstat, redis_fsync, REDIS_THREAD_STACK_SIZE, etc.)
  2. Remove the leading double underscore for guard macro in config.h.

Signed-off-by: Lipeng Zhu <lipeng.zhu@intel.com>
Copy link
Member

@hwware hwware left a comment

Choose a reason for hiding this comment

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

Just a minor comment, Thanks

src/hyperloglog.c Outdated Show resolved Hide resolved
Signed-off-by: Lipeng Zhu <lipeng.zhu@intel.com>
@lipzhu
Copy link
Contributor Author

lipzhu commented Apr 23, 2024

@hwware @zuiderkwast Part of #25

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

Attention: Patch coverage is 83.87097% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 68.33%. Comparing base (87a5bfc) to head (c517f44).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #257      +/-   ##
============================================
- Coverage     68.40%   68.33%   -0.08%     
============================================
  Files           108      108              
  Lines         61562    61562              
============================================
- Hits          42111    42066      -45     
- Misses        19451    19496      +45     
Files Coverage Δ
src/acl.c 88.98% <100.00%> (ø)
src/bitops.c 94.21% <ø> (ø)
src/cluster_legacy.c 74.59% <100.00%> (-0.07%) ⬇️
src/config.c 77.54% <100.00%> (ø)
src/debug.c 52.81% <ø> (ø)
src/hyperloglog.c 91.02% <ø> (ø)
src/replication.c 86.14% <100.00%> (-0.11%) ⬇️
src/rio.c 83.60% <ø> (ø)
src/server.c 88.12% <100.00%> (ø)
src/util.c 69.71% <100.00%> (-0.16%) ⬇️
... and 7 more

... and 7 files with indirect coverage changes

Signed-off-by: Lipeng Zhu <lipeng.zhu@intel.com>
Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

We discussed earlier that it's better to make functions brand neutral, like using server_ prefix instead of valkey_, but server_fsync would be a bit non-unique maybe. I don't mind that we keep valkey here for now.

Can you update the top comment to list all the names you search-replaced using regex? (If it's not too much...) [Edit] I edited the top comment a little and used it as the commit message when merging.

Thanks!

@zuiderkwast zuiderkwast merged commit 393c8fd into valkey-io:unstable Apr 23, 2024
17 checks passed
@lipzhu lipzhu deleted the rename-macro branch April 24, 2024 00:16
PatrickJS pushed a commit to PatrickJS/placeholderkv that referenced this pull request Apr 24, 2024
This patch try to do following things:

1. Rename `redis_*` and `REDIS_*` macros defined in config.h to
`valkey_*`, `VALKEY_*` and update associated used files. (`redis_fstat`,
`redis_fsync`, `REDIS_THREAD_STACK_SIZE`, etc.)
2. Remove the leading double underscore for guard macro in config.h.

---------

Signed-off-by: Lipeng Zhu <lipeng.zhu@intel.com>
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.

None yet

3 participants