Skip to content

DB loading guarded write script in non findex operations #44

@HatemMn

Description

@HatemMn

Reproduction steps :

  1. (optionnal) open a monitored redis DB
  2. execute for example the test called "test_permission_..."
  3. Notice the DB logs : database::redis::permissions::tests::test_permissions_create_index_id

Image

The first line :

1738775174.690098 [0 127.0.0.1:53430] "SCRIPT" "LOAD" "\nlocal guard_address = ARGV[1]\nlocal guard_value = ARGV[2]\nlocal length = ARGV[3]\n\nlocal value = redis.call('GET',ARGV[1])\n\n-- compare the value of the guard to the currently stored value\nif ((value == false) or (guard_value == value)) then\n    -- guard passed, loop over bindings and insert them\n    for i = 4,(length*2)+3,2\n    do\n        redis.call('SET', ARGV[i], ARGV[i+1])\n    end\nend\nreturn value\n"

seems like a pointless call

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions