if (last_segment == NULL)
return NULL;
- g_print("Last cloud log segment: %s\n", last_segment);
+ g_print("Last cloud log segment: %s (processed up to %d)\n",
+ last_segment, fs->log_state->latest_cleaner_seq_seen);
int seq = atoi(last_segment + 13);
g_free(last_segment);
BlueSkyCleanerItem *checkpoint = bluesky_cleaner_deserialize(data);
checkpoint->location.directory = BLUESKY_CLOUD_DIR_CLEANER;
- checkpoint->location.directory = seq;
+ checkpoint->location.sequence = seq;
bluesky_string_unref(data);
return checkpoint;
BlueSkyCloudLog *proxy_item = entry->item;
g_mutex_lock(proxy_item->lock);
- BlueSkyCloudPointer proxy_location = entry->item->location;
- BlueSkyCloudID proxy_id = entry->item->id;
+ //BlueSkyCloudPointer proxy_location = entry->item->location;
+ //BlueSkyCloudID proxy_id = entry->item->id;
g_mutex_unlock(proxy_item->lock);
g_mutex_unlock(fs->lock);
bluesky_cleaner_item_free(imap);
}
- fs->log_state->latest_cleaner_seq_seen = checkpoint->location.directory;
+ fs->log_state->latest_cleaner_seq_seen = checkpoint->location.sequence;
bluesky_cleaner_item_free(checkpoint);
}