Skip to content

Commit 789b74e

Browse files
committed
改进 scripting.c 文件中的两个注释
1 parent 7628f40 commit 789b74e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scripting.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ void scriptingInit(void) {
596596
* 创建一个字典,用于将 SHA 校验码映射到脚本
597597
* This is useful for replication, as we need to replicate EVALSHA
598598
* as EVAL, so we need to remember the associated script.
599-
* 这个主要用于复制,因为我们需要将 EVAL 复制为 EVALSHA ,
600-
* 所以需要记录已关联的脚本
599+
* 因为 Redis 目前复制脚本的方法是将 EVALSHA 转换成 EVAL 来进行的
600+
* 所以程序需要保存和 SHA 校验值相对应的脚本
601601
*/
602602
server.lua_scripts = dictCreate(&shaScriptObjectDictType,NULL);
603603

@@ -838,7 +838,7 @@ void luaSetGlobalArray(lua_State *lua, char *var, robj **elev, int elec) {
838838
* The function name musts be a 2 characters long string, since all the
839839
* functions we defined in the Lua context are in the form:
840840
*
841-
* 所有函数名称都的长度都必须大于 2 ,所以我们使用以下格式来创建函数名
841+
* 所有函数名称的长度都必须大于 2 ,因为我们使用以下格式来创建函数名
842842
*
843843
* f_<hex sha1 sum>
844844
*

0 commit comments

Comments
 (0)