You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed some typos, add a spell check ci and others minor fix (redis#8890)
This PR adds a spell checker CI action that will fail future PRs if they introduce typos and spelling mistakes.
This spell checker is based on blacklist of common spelling mistakes, so it will not catch everything,
but at least it is also unlikely to cause false positives.
Besides that, the PR also fixes many spelling mistakes and types, not all are a result of the spell checker we use.
Here's a summary of other changes:
1. Scanned the entire source code and fixes all sorts of typos and spelling mistakes (including missing or extra spaces).
2. Outdated function / variable / argument names in comments
3. Fix outdated keyspace masks error log when we check `config.notify-keyspace-events` in loadServerConfigFromString.
4. Trim the white space at the end of line in `module.c`. Check: redis#7751
5. Some outdated https link URLs.
6. Fix some outdated comment. Such as:
- In README: about the rdb, we used to said create a `thread`, change to `process`
- dbRandomKey function coment (about the dictGetRandomKey, change to dictGetFairRandomKey)
- notifyKeyspaceEvent fucntion comment (add type arg)
- Some others minor fix in comment (Most of them are incorrectly quoted by variable names)
7. Modified the error log so that users can easily distinguish between TCP and TLS in `changeBindAddr`
Copy file name to clipboardExpand all lines: CONTRIBUTING
+3-3
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ all the support in the mailing list.
18
18
19
19
There is also an active community of Redis users at Stack Overflow:
20
20
21
-
http://stackoverflow.com/questions/tagged/redis
21
+
https://stackoverflow.com/questions/tagged/redis
22
22
23
23
Issues and pull requests for documentation belong on the redis-doc repo:
24
24
@@ -38,10 +38,10 @@ Here you'll see if there is consensus about your idea.
38
38
2. If in step 1 you get an acknowledgment from the project leaders, use the
39
39
following procedure to submit a patch:
40
40
41
-
a. Fork Redis on github ( http://help.github.com/fork-a-repo/ )
41
+
a. Fork Redis on github ( https://docs.github.com/en/github/getting-started-with-github/fork-a-repo )
42
42
b. Create a topic branch (git checkout -b my_branch)
43
43
c. Push to your branch (git push origin my_branch)
44
-
d. Initiate a pull request on github ( https://help.github.com/articles/creating-a-pull-request/ )
44
+
d. Initiate a pull request on github ( https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request )
45
45
e. Done :)
46
46
47
47
3. Keep in mind that we are very overloaded, so issues and PRs sometimes wait
* than two seconds this is still ok. Postpone again. */
420
420
return;
421
421
}
422
-
/* Otherwise fall trough, and go write since we can't wait
422
+
/* Otherwise fall through, and go write since we can't wait
423
423
* over two seconds. */
424
424
server.aof_delayed_fsync++;
425
425
serverLog(LL_NOTICE,"Asynchronous AOF fsync is taking too long (disk is busy?). Writing the AOF buffer without waiting for fsync to complete, this may slow down Redis.");
@@ -1745,7 +1745,7 @@ int rewriteAppendOnlyFileBackground(void) {
1745
1745
server.aof_rewrite_scheduled=0;
1746
1746
server.aof_rewrite_time_start=time(NULL);
1747
1747
1748
-
/* We set appendseldb to -1 in order to force the next call to the
1748
+
/* We set aof_selected_db to -1 in order to force the next call to the
1749
1749
* feedAppendOnlyFile() to issue a SELECT command, so the differences
1750
1750
* accumulated by the parent into server.aof_rewrite_buf will start
1751
1751
* with a SELECT statement and it will be safe to merge. */
@@ -1885,7 +1885,7 @@ void backgroundRewriteDoneHandler(int exitcode, int bysignal) {
0 commit comments