]> git.saurik.com Git - redis.git/commitdiff
fixed a few comments
authorantirez <antirez@gmail.com>
Tue, 1 Jun 2010 12:18:30 +0000 (14:18 +0200)
committerantirez <antirez@gmail.com>
Tue, 1 Jun 2010 12:18:30 +0000 (14:18 +0200)
redis.c

diff --git a/redis.c b/redis.c
index a87026ff333b1e8608332207746c8ef687fef0fc..f5a437837f93587b17abf554b17f272bee08a67e 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -9120,10 +9120,12 @@ static int vmWriteObjectOnSwap(robj *o, off_t page) {
     return REDIS_OK;
 }
 
-/* Swap the 'val' object relative to 'key' into disk. Store all the information
- * needed to later retrieve the object into the key object.
+/* Transfers the 'val' object to disk. Store all the information
+ * 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
- * REDIS_ERR is returned. */
+ * NULL is returned. */
 static vmpointer *vmSwapObjectBlocking(robj *val) {
     off_t pages = rdbSavedObjectPages(val,NULL);
     off_t page;