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
cc101721
Commit
cc101721
authored
May 13, 2019
by
antirez
Browse files
Make comment in getClientOutputBufferMemoryUsage() describing the present.
parent
72420b0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
cc101721
...
@@ -2021,15 +2021,8 @@ void rewriteClientCommandArgument(client *c, int i, robj *newval) {
...
@@ -2021,15 +2021,8 @@ void rewriteClientCommandArgument(client *c, int i, robj *newval) {
}
}
}
}
/* This function returns the number of bytes that Redis is
virtually
/* This function returns the number of bytes that Redis is
* using to store the reply still not read by the client.
* using to store the reply still not read by the client.
* It is "virtual" since the reply output list may contain objects that
* are shared and are not really using additional memory.
*
* The function returns the total sum of the length of all the objects
* stored in the output list, plus the memory used to allocate every
* list node. The static reply buffer is not taken into account since it
* is allocated anyway.
*
*
* Note: this function is very fast so can be called as many time as
* Note: this function is very fast so can be called as many time as
* the caller wishes. The main usage of this function currently is
* the caller wishes. The main usage of this function currently is
...
...
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