X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Flog.c;h=f52ac01fb3d6d365fb8ef02b6c37ffab0d864b89;hb=c4224e520e4bc28d5546cd55417cd1065655b6ec;hp=e5f032120b0112cc899ae0e0c4ab6112f815ea56;hpb=bf1b396c85d03f9c16eee6cd84c71c82503c3ec4;p=bluesky.git diff --git a/bluesky/log.c b/bluesky/log.c index e5f0321..f52ac01 100644 --- a/bluesky/log.c +++ b/bluesky/log.c @@ -310,6 +310,7 @@ BlueSkyCloudLog *bluesky_log_get_commit_point(BlueSkyFS *fs) BlueSkyCloudLog *marker = bluesky_cloudlog_new(fs, NULL); marker->type = LOGTYPE_JOURNAL_MARKER; marker->data = bluesky_string_new(g_strdup(""), 0); + bluesky_cloudlog_stats_update(marker, 1); bluesky_cloudlog_sync(marker); g_mutex_lock(marker->lock); @@ -332,6 +333,7 @@ void bluesky_log_write_commit_point(BlueSkyFS *fs, BlueSkyCloudLog *marker) g_string_append_len(loc, (const gchar *)&seq, sizeof(seq)); g_string_append_len(loc, (const gchar *)&offset, sizeof(offset)); commit->data = bluesky_string_new_from_gstring(loc); + bluesky_cloudlog_stats_update(commit, 1); bluesky_cloudlog_sync(commit); g_mutex_lock(commit->lock);