Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
31017609
Commit
31017609
authored
Jan 16, 2014
by
Aaron Rutkovsky
Committed by
antirez
Oct 06, 2014
Browse files
Fix typos
Closes #1513
parent
d3005539
Changes
4
Hide whitespace changes
Inline
Side-by-side
deps/hiredis/test.c
View file @
31017609
...
@@ -51,7 +51,7 @@ static redisContext *select_database(redisContext *c) {
...
@@ -51,7 +51,7 @@ static redisContext *select_database(redisContext *c) {
assert
(
reply
!=
NULL
);
assert
(
reply
!=
NULL
);
freeReplyObject
(
reply
);
freeReplyObject
(
reply
);
/* Make sure the DB is em
t
py */
/* Make sure the DB is emp
t
y */
reply
=
redisCommand
(
c
,
"DBSIZE"
);
reply
=
redisCommand
(
c
,
"DBSIZE"
);
assert
(
reply
!=
NULL
);
assert
(
reply
!=
NULL
);
if
(
reply
->
type
==
REDIS_REPLY_INTEGER
&&
reply
->
integer
==
0
)
{
if
(
reply
->
type
==
REDIS_REPLY_INTEGER
&&
reply
->
integer
==
0
)
{
...
...
src/adlist.c
View file @
31017609
...
@@ -71,7 +71,7 @@ void listRelease(list *list)
...
@@ -71,7 +71,7 @@ void listRelease(list *list)
zfree
(
list
);
zfree
(
list
);
}
}
/* Add a new node to the list, to head, contaning the specified 'value'
/* Add a new node to the list, to head, conta
i
ning the specified 'value'
* pointer as value.
* pointer as value.
*
*
* On error, NULL is returned and no operation is performed (i.e. the
* On error, NULL is returned and no operation is performed (i.e. the
...
...
src/replication.c
View file @
31017609
...
@@ -81,7 +81,7 @@ void resizeReplicationBacklog(long long newsize) {
...
@@ -81,7 +81,7 @@ void resizeReplicationBacklog(long long newsize) {
server
.
repl_backlog
=
zmalloc
(
server
.
repl_backlog_size
);
server
.
repl_backlog
=
zmalloc
(
server
.
repl_backlog_size
);
server
.
repl_backlog_histlen
=
0
;
server
.
repl_backlog_histlen
=
0
;
server
.
repl_backlog_idx
=
0
;
server
.
repl_backlog_idx
=
0
;
/* Next byte we have is... the next since the buffer is em
t
py. */
/* Next byte we have is... the next since the buffer is emp
t
y. */
server
.
repl_backlog_off
=
server
.
master_repl_offset
+
1
;
server
.
repl_backlog_off
=
server
.
master_repl_offset
+
1
;
}
}
}
}
...
@@ -375,7 +375,7 @@ int masterTryPartialResynchronization(redisClient *c) {
...
@@ -375,7 +375,7 @@ int masterTryPartialResynchronization(redisClient *c) {
listAddNodeTail
(
server
.
slaves
,
c
);
listAddNodeTail
(
server
.
slaves
,
c
);
/* We can't use the connection buffers since they are used to accumulate
/* We can't use the connection buffers since they are used to accumulate
* new commands at this stage. But we are sure the socket send buffer is
* new commands at this stage. But we are sure the socket send buffer is
* em
t
py so this write will never fail actually. */
* emp
t
y so this write will never fail actually. */
buflen
=
snprintf
(
buf
,
sizeof
(
buf
),
"+CONTINUE
\r\n
"
);
buflen
=
snprintf
(
buf
,
sizeof
(
buf
),
"+CONTINUE
\r\n
"
);
if
(
write
(
c
->
fd
,
buf
,
buflen
)
!=
buflen
)
{
if
(
write
(
c
->
fd
,
buf
,
buflen
)
!=
buflen
)
{
freeClientAsync
(
c
);
freeClientAsync
(
c
);
...
@@ -1436,7 +1436,7 @@ void replicationDiscardCachedMaster(void) {
...
@@ -1436,7 +1436,7 @@ void replicationDiscardCachedMaster(void) {
/* Turn the cached master into the current master, using the file descriptor
/* Turn the cached master into the current master, using the file descriptor
* passed as argument as the socket for the new master.
* passed as argument as the socket for the new master.
*
*
* This func
i
ton is called when successfully setup a partial resynchronization
* This funct
i
on is called when successfully setup a partial resynchronization
* so the stream of data that we'll receive will start from were this
* so the stream of data that we'll receive will start from were this
* master left. */
* master left. */
void
replicationResurrectCachedMaster
(
int
newfd
)
{
void
replicationResurrectCachedMaster
(
int
newfd
)
{
...
@@ -1577,7 +1577,7 @@ int replicationScriptCacheExists(sds sha1) {
...
@@ -1577,7 +1577,7 @@ int replicationScriptCacheExists(sds sha1) {
/* --------------------------- REPLICATION CRON ----------------------------- */
/* --------------------------- REPLICATION CRON ----------------------------- */
/* Replication cron func
i
ton, called 1 time per second. */
/* Replication cron funct
i
on, called 1 time per second. */
void
replicationCron
(
void
)
{
void
replicationCron
(
void
)
{
/* Non blocking connection timeout? */
/* Non blocking connection timeout? */
if
(
server
.
masterhost
&&
if
(
server
.
masterhost
&&
...
...
tests/test_helper.tcl
View file @
31017609
...
@@ -306,7 +306,7 @@ proc signal_idle_client fd {
...
@@ -306,7 +306,7 @@ proc signal_idle_client fd {
}
}
}
}
# The the_end func
i
ton gets called when all the test units were already
# The the_end funct
i
on gets called when all the test units were already
# executed, so the test finished.
# executed, so the test finished.
proc the_end
{}
{
proc the_end
{}
{
# TODO: print the status, exit with the rigth exit code.
# TODO: print the status, exit with the rigth exit code.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment