Fix up cloud log state counting.
[bluesky.git] / bluesky / cache.c
index d1c5c84..1f10ca3 100644 (file)
@@ -287,6 +287,12 @@ static gpointer flushd_task(BlueSkyFS *fs)
     bluesky_cachefile_gc(fs);
     g_mutex_unlock(fs->flushd_lock);
 
+    g_print("\nCloudlog cache: %d dirty, %d writeback, %d journal, %d cloud\n",
+            g_atomic_int_get(&fs->cache_log_dirty),
+            g_atomic_int_get(&fs->cache_log_writeback),
+            g_atomic_int_get(&fs->cache_log_journal),
+            g_atomic_int_get(&fs->cache_log_cloud));
+
     return NULL;
 }