Git Product home page Git Product logo

Comments (9)

PingXie avatar PingXie commented on June 22, 2024 1

Yes, thus any client has the file like this, client need to be updated by itself.

I wonder if we should take a code fix to remove this line altogether. If someone is bringing over a Redis module in the source code format, I think we should honor that intent by not changing their entry point. thoughts?

from valkey.

madolson avatar madolson commented on June 22, 2024

I guess I'm still a bit confused, is there a test you can write that will demonstrate the behavior?

from valkey.

PingXie avatar PingXie commented on June 22, 2024

The module in question is built against the Valkey source tree where RedisModule_OnLoad is aliased to ValkeyModule_OnLoad. The version script says that all symbols except for RedisModule_OnLoad should be hidden, which includes ValkeyModule_OnLoad hence this issue. Since we have decided to be both source and ABI compatiable with Redis modules, I think we can try fixing this issue by deleting https://github.com/valkey-io/valkey/blob/unstable/src/redismodule.h#L339

image

However, we will print out a "Legacy module ... loaded" NOTICE message with this change, even if the module is rebuilt against the Valkey tree. This is probably acceptable as the module is written against redismodule.h. So technically it is still a legacy Redis module.

from valkey.

hwware avatar hwware commented on June 22, 2024

I guess I'm still a bit confused, is there a test you can write that will demonstrate the behavior?

Let me try to describe this issue by using an example

from valkey.

hwware avatar hwware commented on June 22, 2024

I guess I'm still a bit confused, is there a test you can write that will demonstrate the behavior?

I already update the top comment to describe an example for this issue, Thanks

from valkey.

PingXie avatar PingXie commented on June 22, 2024

@hwware the macro on L339 in redismodule.h is the cultprit.

from valkey.

hwware avatar hwware commented on June 22, 2024

@hwware the macro on L339 in redismodule.h is the cultprit.

Yes, thus any client has the file like this, client need to be updated by itself.

from valkey.

madolson avatar madolson commented on June 22, 2024

@hwware How critical is this to fix? Do we need to pull it in to the Valkey 8 project?

from valkey.

hwware avatar hwware commented on June 22, 2024

I have no idea how it is important. But any project includes vesion.script as the example in the top comment, some codes changes need. Let us have a vote for core member @valkey-io/core-team : do we need to pull it in to the Valkey 8 project?

from valkey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.