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
e03c730d
Commit
e03c730d
authored
Aug 20, 2013
by
antirez
Browse files
Use printf %zu specifier to print private_dirty.
parent
718fd3c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/aof.c
View file @
e03c730d
...
@@ -970,7 +970,7 @@ int rewriteAppendOnlyFileBackground(void) {
...
@@ -970,7 +970,7 @@ int rewriteAppendOnlyFileBackground(void) {
if
(
private_dirty
)
{
if
(
private_dirty
)
{
redisLog
(
REDIS_NOTICE
,
redisLog
(
REDIS_NOTICE
,
"AOF rewrite: %
l
u MB of memory used by copy-on-write"
,
"AOF rewrite: %
z
u MB of memory used by copy-on-write"
,
private_dirty
/
(
1024
*
1024
));
private_dirty
/
(
1024
*
1024
));
}
}
exitFromChild
(
0
);
exitFromChild
(
0
);
...
...
src/rdb.c
View file @
e03c730d
...
@@ -737,7 +737,7 @@ int rdbSaveBackground(char *filename) {
...
@@ -737,7 +737,7 @@ int rdbSaveBackground(char *filename) {
if
(
private_dirty
)
{
if
(
private_dirty
)
{
redisLog
(
REDIS_NOTICE
,
redisLog
(
REDIS_NOTICE
,
"RDB: %
l
u MB of memory used by copy-on-write"
,
"RDB: %
z
u MB of memory used by copy-on-write"
,
private_dirty
/
(
1024
*
1024
));
private_dirty
/
(
1024
*
1024
));
}
}
}
}
...
...
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