Merge pull request #6919 from ashtul/Fix-ThreadSafeContext-functions-names

fix ThreadSafeContext lock/unlock function names
This commit is contained in:
Salvatore Sanfilippo 2020-02-27 10:01:48 +01:00 committed by GitHub
commit 37612118c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4740,9 +4740,9 @@ int RM_BlockedClientDisconnected(RedisModuleCtx *ctx) {
*
* To call non-reply APIs, the thread safe context must be prepared with:
*
* RedisModule_ThreadSafeCallStart(ctx);
* RedisModule_ThreadSafeContextLock(ctx);
* ... make your call here ...
* RedisModule_ThreadSafeCallStop(ctx);
* RedisModule_ThreadSafeContextUnlock(ctx);
*
* This is not needed when using `RedisModule_Reply*` functions, assuming
* that a blocked client was used when the context was created, otherwise