Merge pull request #5924 from swilly22/redismodule-replicated-cmd-ctx-flag

document additional flag of RM_GetContextFlags
This commit is contained in:
Salvatore Sanfilippo 2019-03-13 11:52:07 +01:00 committed by GitHub
commit 610aff3251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1359,6 +1359,9 @@ int RM_GetSelectedDb(RedisModuleCtx *ctx) {
* *
* * REDISMODULE_CTX_FLAGS_MULTI: The command is running inside a transaction * * REDISMODULE_CTX_FLAGS_MULTI: The command is running inside a transaction
* *
* * REDISMODULE_CTX_FLAGS_REPLICATED: The command was sent over the replication
* link by the MASTER
*
* * REDISMODULE_CTX_FLAGS_MASTER: The Redis instance is a master * * REDISMODULE_CTX_FLAGS_MASTER: The Redis instance is a master
* *
* * REDISMODULE_CTX_FLAGS_SLAVE: The Redis instance is a slave * * REDISMODULE_CTX_FLAGS_SLAVE: The Redis instance is a slave