From: Michael Vrable Date: Fri, 5 Feb 2010 21:40:33 +0000 (-0800) Subject: Do not drop data from cache immediately after a write. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=db0d4c10ea7abfa2546f73e96784ebf554342977;p=bluesky.git Do not drop data from cache immediately after a write. --- diff --git a/bluesky/file.c b/bluesky/file.c index 2df979e..6ba39e3 100644 --- a/bluesky/file.c +++ b/bluesky/file.c @@ -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. */