state->location.sequence);
async->data = bluesky_string_new_from_gstring(state->data);
bluesky_store_async_submit(async);
- bluesky_store_async_wait(async);
+ //bluesky_store_async_wait(async);
bluesky_store_async_unref(async);
state->location.sequence++;
}
while (log->fd < 0) {
- g_snprintf(logname, sizeof(logname), "log-%08d", log->seq_num);
+ g_snprintf(logname, sizeof(logname), "journal-%08d", log->seq_num);
log->fd = openat(log->dirfd, logname, O_CREAT|O_WRONLY|O_EXCL, 0600);
if (log->fd < 0 && errno == EEXIST) {
fprintf(stderr, "Log file %s already exists...\n", logname);
// A request for a local log file
if (clouddir < 0) {
- logname = g_strdup_printf("log-%08d", log_seq);
+ logname = g_strdup_printf("journal-%08d", log_seq);
} else {
logname = g_strdup_printf("log-%08d-%08d", clouddir, log_seq);
}
BlueSkyRCStr *bluesky_string_new_from_mmap(BlueSkyCacheFile *mmap,
int offset, gsize len)
{
- g_assert(offset + len < mmap->len);
+ g_assert(offset + len <= mmap->len);
BlueSkyRCStr *string = g_new(BlueSkyRCStr, 1);
string->mmap = mmap;