Print index type.

This commit is contained in:
Moinak Ghosh 2013-06-29 11:57:32 +05:30
parent e732e86b91
commit a2d74dab50
2 changed files with 3 additions and 0 deletions

View file

@ -2527,6 +2527,7 @@ create_pc_context(void)
ctx->hide_mem_stats = 1;
ctx->hide_cmp_stats = 1;
ctx->enable_rabin_split = 1;
ctx->rab_blk_size = 1;
return (ctx);
}

View file

@ -882,6 +882,7 @@ process_blocks:
* predictable serialization of index access in a sequence of
* threads without locking.
*/
printf("Using simple dedupe index.\n");
length = 0;
DEBUG_STAT_EN(w1 = get_wtime_millis());
sem_wait(ctx->index_sem);
@ -968,6 +969,7 @@ process_blocks:
* ======================================================================
*/
printf("Using similarity based dedupe index.\n");
cfg = ctx->arc;
assert(cfg->similarity_cksum_sz == sizeof (uint64_t));
seg_heap = (uchar_t *)(ctx->g_blocks) - cfg->segment_sz * cfg->chunk_cksum_sz;