log->data = NULL;
bluesky_cloudlog_stats_update(log, 1);
}
- if (log->location_flags & CLOUDLOG_CLOUD) {
- log->location_flags &= ~CLOUDLOG_JOURNAL;
- }
g_mutex_unlock(log->lock);
}
}
{
if (!g_mutex_trylock(fs->flushd_lock))
return NULL;
+
+ 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));
+
flushd_dirty(fs);
flushd_cloud(fs);
flushd_clean(fs);