{
int i, j, ret;
- PARA_NOTICE_LOG("checking for range violations in index\n");
+ PARA_INFO_LOG("checking for range violations in index\n");
//PARA_DEBUG_LOG("%d rows. %d columns\n", t->num_rows, t->desc->num_columns);
t->num_invalid_rows = 0;
for (i = 0; i < t->num_rows; i++) {
int ret;
ret = mmap_full_file(filename, O_RDWR, &map->data, &map->size, NULL);
- PARA_INFO_LOG("mapping index %s: ret: %d, size: %zu\n", filename, ret, map->size);
+ PARA_DEBUG_LOG("mapping index %s: ret: %d, size: %zu\n", filename, ret, map->size);
free(filename);
return ret;
}
break;
}
}
- PARA_INFO_LOG("unmapping index\n");
+ PARA_DEBUG_LOG("unmapping index\n");
para_munmap(t->index_map.data, t->index_map.size);
filename = index_filename(t->desc);
ret = para_truncate(filename, t->row_index_size
const struct osl_column_description *cd;
uint32_t *loss = para_malloc(sizeof(uint32_t) * t->desc->num_columns);
- PARA_NOTICE_LOG("looking for mapped objects not contained in index\n");
+ PARA_INFO_LOG("looking for mapped objects not contained in index\n");
/* first count used bytes */
FOR_EACH_MAPPED_COLUMN(i, t, cd) {
loss[i] = t->columns[i].data_map.size;
if (!t->num_rows)
return 1;
hashes = para_malloc(t->num_rows * HASH_SIZE);
- PARA_NOTICE_LOG("looking for missing disk storage objects\n");
+ PARA_INFO_LOG("looking for missing disk storage objects\n");
for (i = 0; i < t->num_rows; i++) {
if (row_is_invalid(t, i))
continue;
int i, ret = 1;
const struct osl_column_description *cd;
- PARA_NOTICE_LOG("looking for unreferenced disk storage files\n");
+ PARA_INFO_LOG("looking for unreferenced disk storage files\n");
FOR_EACH_DISK_STORAGE_COLUMN(i, t, cd) {
char *dirname = column_filename(t, i);
ret = for_each_file_in_dir(dirname, prune_disk_storage_file, &t->desc->flags);
const struct osl_column_description *cd;
if (!t->num_disk_storage_columns) {
- PARA_NOTICE_LOG("no disk storage columns in table '%s', "
+ PARA_INFO_LOG("no disk storage columns in table '%s', "
"skipping checks\n", t->desc->name);
return 1;
}
ret = init_rbtrees(t);
if (ret < 0)
return ret;
- PARA_NOTICE_LOG("creating rbtree for disk storage hash values\n");
+ PARA_INFO_LOG("creating rbtree for disk storage hash values\n");
ret = osl_open_table(&hash_tree_table_desc, &hash_tree_table);
if (ret < 0)
goto out;
para_munmap(map.data, map.size);
goto out;
}
- PARA_INFO_LOG("unmapping index\n");
+ PARA_DEBUG_LOG("unmapping index\n");
para_munmap(map.data, map.size);
if (conf.force_given)
ret = map_table(*t, (MAP_TBL_FL_IGNORE_DIRTY));
goto out_unmap;
}
free(lost_bytes);
- PARA_INFO_LOG("success\n");
out_unmap:
unmap_table(t, OSL_MARK_CLEAN);
out: