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
a4798f73
Commit
a4798f73
authored
Jun 01, 2010
by
antirez
Browse files
fixed a few comments
parent
7dd8e7cf
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
a4798f73
...
@@ -9120,10 +9120,12 @@ static int vmWriteObjectOnSwap(robj *o, off_t page) {
...
@@ -9120,10 +9120,12 @@ static int vmWriteObjectOnSwap(robj *o, off_t page) {
return REDIS_OK;
return REDIS_OK;
}
}
/* Swap the 'val' object relative to 'key' into disk. Store all the information
/* Transfers the 'val' object to disk. Store all the information
* needed to later retrieve the object into the key object.
* a 'vmpointer' object containing all the information needed to load the
* object back later is returned.
*
* If we can't find enough contiguous empty pages to swap the object on disk
* If we can't find enough contiguous empty pages to swap the object on disk
*
REDIS_ERR
is returned. */
*
NULL
is returned. */
static vmpointer *vmSwapObjectBlocking(robj *val) {
static vmpointer *vmSwapObjectBlocking(robj *val) {
off_t pages = rdbSavedObjectPages(val,NULL);
off_t pages = rdbSavedObjectPages(val,NULL);
off_t page;
off_t page;
...
...
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