Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

fix: redis script bug unbound variable #138

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

biswaroop1547
Copy link
Collaborator

No description provided.

@@ -41,7 +41,6 @@ MODULEDIR="$tmpdir/lib"
--protected-mode no \
--daemonize no \
--loadmodule "${MODULEDIR}/redisearch.so" ${REDISEARCH_ARGS} \
--loadmodule "${MODULEDIR}/redisgears.so" v8-plugin-path "${MODULEDIR}/libredisgears_v8_plugin.so" ${REDISGEARS_ARGS} \
"$@") &
Copy link
Contributor

@casperdcl casperdcl Nov 3, 2023

Choose a reason for hiding this comment

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

are you sure you can't do this instead?

Suggested change
"$@") &
--loadmodule "${MODULEDIR}/redisgears.so" v8-plugin-path "${MODULEDIR}/libredisgears_v8_plugin.so" \
"$@") &

actually also is it still safe to put "$@" here? how does --loadmodule know which args are for the module and which are for redis-stack?

Are they all magically handled https://stackoverflow.com/q/55078246?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

so we don't need redisgears for vector db only redisearch is needed, and --loadmodule seems to take only the required arguments (from whatever I've tested locally) and all other arguments are passed down to redis-server hence setup-redis.sh --port 8001 works

@casperdcl casperdcl merged commit 290a2d7 into premAI-io:main Nov 3, 2023
5 of 6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants