Skip to content

Conversation

@lantiga
Copy link
Contributor

@lantiga lantiga commented Jul 18, 2019

Addresses #160
/cc @MeirShpilraien

@lantiga lantiga requested a review from MeirShpilraien July 18, 2019 09:33
src/redisai.c Outdated

if (RedisModule_IsKeysPositionRequest(ctx)) {
RedisModule_KeyAtPos(ctx, 1);
for (int i=1; i<argc; i++) {

Choose a reason for hiding this comment

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

shouldn't you start from 2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Damn

src/redisai.c Outdated

if (RedisModule_IsKeysPositionRequest(ctx)) {
RedisModule_KeyAtPos(ctx, 1);
for (int i=2; i<argc; i++) {

Choose a reason for hiding this comment

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

shouldn't you start from 3?

Copy link

@MeirShpilraien MeirShpilraien left a comment

Choose a reason for hiding this comment

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

See small comments, other then this looks good.

@lantiga
Copy link
Contributor Author

lantiga commented Jul 18, 2019

Fixed, good catch :-)

@lantiga lantiga merged commit 45dbb80 into master Jul 18, 2019
@gkorland gkorland deleted the keypos_fix branch July 18, 2019 11:11
lantiga added a commit that referenced this pull request May 6, 2020
 
Fix use of key pos API, and point to first tensor key in command def (#161)

* Fix use of key pos API, and point to first tensor key in command def

* Fix offsets
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.

3 participants