Describe the bug Calling RedisModule_OpenKey from a Database which isn't 0 twice in the 2nd time it always returns NULL.
How to reproduce: Call twice from Database 2: _key = RedisModule_OpenKey(ctx, keyName, REDISMODULE_READ); RedisModule_CloseKey(_key); In the 2nd time _key == NULL Although when doing keys * I can see the key and I can also send commands on this key.
This is the context passed:
(lldb) p *ctx
(RedisModuleCtx) $14 = {
getapifuncptr = 0x000000010009e420
module = 0x00006000026061c0
client = 0x000000010101cc00
blocked_client = NULL
amqueue = NULL
amqueue_len = 0
amqueue_used = 0
flags = 16
postponed_arrays = 0x0000000000000000
postponed_arrays_count = 0
blocked_privdata = 0x0000000000000000
blocked_ready_key = NULL
keys_result = NULL
pa_head = NULL
saved_oparray = {
ops = NULL
numops = 0
}
}