Skip to content

Commit

Permalink
minor comments fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lyq2333 committed Oct 18, 2024
1 parent 3734d2e commit f6124fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/commands/client-import-source.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"IMPORT-SOURCE": {
"summary": "Allow this client to import data.",
"summary": "Mark this client as importing source when server is in import mode.",
"complexity": "O(1)",
"group": "connection",
"since": "8.2.0",
Expand Down
6 changes: 3 additions & 3 deletions src/networking.c
Original file line number Diff line number Diff line change
Expand Up @@ -3567,9 +3567,9 @@ void clientCommand(client *c) {
" Protect current client connection from eviction.",
"NO-TOUCH (ON|OFF)",
" Will not touch LRU/LFU stats when this mode is on.",
"PSEUDO-PRIMARY (ON|OFF)",
" Set this connection behaving like a primary if server.import_mode is true.",
" Sync tools can set their connections into 'pseudo-primary' state to visit expired keys.",
"IMPORY-SOURCE (ON|OFF)",
" Set this connection as importing source when server.import_mode is true.",
" Sync tools can set their connections into this state to visit expired keys.",
NULL};
addReplyHelp(c, help);
} else if (!strcasecmp(c->argv[1]->ptr, "id") && c->argc == 2) {
Expand Down
4 changes: 2 additions & 2 deletions valkey.conf
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,8 @@ replica-priority 100

# Make the primary forbid expiration and evcition.
# This is useful for sync tools, because expiration and evcition may cause the data corruption.
# Sync tools can set their connections into 'pseudo-primary' state by CLIENT PSEUDO-PRIMARY to
# behave like a primary(i.e. visit expired keys).
# Sync tools can mark their connections as importing source by CLIENT IMPORT-SOURCE.
# NOTICE: Clients should avoid writing the same key on the source server and the destination server.
#
# import-mode no

Expand Down

0 comments on commit f6124fc

Please sign in to comment.