Skip to content

Update Server version to valkey version#232

Merged
madolson merged 3 commits into
valkey-io:unstablefrom
madolson:valkey_version_update
Apr 6, 2024
Merged

Update Server version to valkey version#232
madolson merged 3 commits into
valkey-io:unstablefrom
madolson:valkey_version_update

Conversation

@madolson

@madolson madolson commented Apr 5, 2024

Copy link
Copy Markdown
Member

Based on conversation from #43 (comment). This commit updates the following fields:

  1. server_version -> valkey_version in server info. Since we would like to advertise specific compatibility, we are making the version specific to valkey. servername will remain as an optional indicator, and other valkey compatible stores might choose to advertise something else.
  2. We dropped redis-ver from the API. This isn't related to API compatibility, but we didn't want to "fake" that valkey was creating an rdb from a Redis version.
  3. Renamed server-ver -> valkey-ver in rdb info. Same as point one, we want to explicitly indicate this was created by a valkey server.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson requested review from PingXie and zuiderkwast April 5, 2024 18:38
@hwware

hwware commented Apr 5, 2024

Copy link
Copy Markdown
Contributor

Suggest to update function name: test_redisversion in misc.c as well in this PR

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@hwware

hwware commented Apr 5, 2024

Copy link
Copy Markdown
Contributor

LGTM, Thanks

Comment thread src/module.c Outdated
Comment on lines 13297 to 13299
int RM_GetServerVersion(void) {
return SERVER_VERSION_NUM;
return VALKEY_VERSION_NUM;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not the scope of this PR, but I wonder whether we should return the Redis compat version here instead.

…alkey_version_update

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson merged commit bc28fb4 into valkey-io:unstable Apr 6, 2024
madolson added a commit to madolson/valkey that referenced this pull request Apr 7, 2024
This commit updates the following fields:
1. server_version -> valkey_version in server info. Since we would like
to advertise specific compatibility, we are making the version specific
to valkey. servername will remain as an optional indicator, and other
valkey compatible stores might choose to advertise something else.
1. We dropped redis-ver from the API. This isn't related to API
compatibility, but we didn't want to "fake" that valkey was creating an
rdb from a Redis version.
1. Renamed server-ver -> valkey_version in rdb info. Same as point one,
we want to explicitly indicate this was created by a valkey server.

---------

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
madolson added a commit to madolson/valkey that referenced this pull request Apr 8, 2024
This commit updates the following fields:
1. server_version -> valkey_version in server info. Since we would like
to advertise specific compatibility, we are making the version specific
to valkey. servername will remain as an optional indicator, and other
valkey compatible stores might choose to advertise something else.
1. We dropped redis-ver from the API. This isn't related to API
compatibility, but we didn't want to "fake" that valkey was creating an
rdb from a Redis version.
1. Renamed server-ver -> valkey_version in rdb info. Same as point one,
we want to explicitly indicate this was created by a valkey server.

---------

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
PatrickJS pushed a commit to PatrickJS/placeholderkv that referenced this pull request Apr 24, 2024
This commit updates the following fields:
1. server_version -> valkey_version in server info. Since we would like
to advertise specific compatibility, we are making the version specific
to valkey. servername will remain as an optional indicator, and other
valkey compatible stores might choose to advertise something else.
1. We dropped redis-ver from the API. This isn't related to API
compatibility, but we didn't want to "fake" that valkey was creating an
rdb from a Redis version.
1. Renamed server-ver -> valkey_version in rdb info. Same as point one,
we want to explicitly indicate this was created by a valkey server.

---------

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
kovan added a commit to kovan/valkey-doc that referenced this pull request Mar 26, 2026
- Fix: the INFO field is valkey_version, not server_version
  (renamed in valkey-io/valkey#232)
- Add Lua globals: SERVER_NAME, SERVER_VERSION, SERVER_VERSION_NUM
  (added in valkey-io/valkey#47)
kovan added a commit to kovan/valkey-doc that referenced this pull request May 14, 2026
- Fix: the INFO field is valkey_version, not server_version
  (renamed in valkey-io/valkey#232)
- Add Lua globals: SERVER_NAME, SERVER_VERSION, SERVER_VERSION_NUM
  (added in valkey-io/valkey#47)

Signed-off-by: Kit Dallege <xaum.io@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants