Do not drop data from cache immediately after a write.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 5 Feb 2010 21:40:33 +0000 (13:40 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 5 Feb 2010 21:40:33 +0000 (13:40 -0800)
bluesky/file.c

index 2df979e..6ba39e3 100644 (file)
@@ -225,13 +225,9 @@ void bluesky_block_flush(BlueSkyFS *fs, BlueSkyBlock *block,
     g_free(block->ref);
     block->ref = name;
 
-    /* block->type = BLUESKY_BLOCK_CACHED; */
-    bluesky_string_unref(block->data);
-    block->data = NULL;
-    block->type = BLUESKY_BLOCK_REF;
+    block->type = BLUESKY_BLOCK_CACHED;
 
     g_checksum_free(csum);
-    //bluesky_string_unref(data);
 }
 
 /* Flush all blocks in a file to stable storage. */