Print index type.
This commit is contained in:
parent
e732e86b91
commit
a2d74dab50
2 changed files with 3 additions and 0 deletions
|
@ -2527,6 +2527,7 @@ create_pc_context(void)
|
||||||
ctx->hide_mem_stats = 1;
|
ctx->hide_mem_stats = 1;
|
||||||
ctx->hide_cmp_stats = 1;
|
ctx->hide_cmp_stats = 1;
|
||||||
ctx->enable_rabin_split = 1;
|
ctx->enable_rabin_split = 1;
|
||||||
|
ctx->rab_blk_size = 1;
|
||||||
|
|
||||||
return (ctx);
|
return (ctx);
|
||||||
}
|
}
|
||||||
|
|
|
@ -882,6 +882,7 @@ process_blocks:
|
||||||
* predictable serialization of index access in a sequence of
|
* predictable serialization of index access in a sequence of
|
||||||
* threads without locking.
|
* threads without locking.
|
||||||
*/
|
*/
|
||||||
|
printf("Using simple dedupe index.\n");
|
||||||
length = 0;
|
length = 0;
|
||||||
DEBUG_STAT_EN(w1 = get_wtime_millis());
|
DEBUG_STAT_EN(w1 = get_wtime_millis());
|
||||||
sem_wait(ctx->index_sem);
|
sem_wait(ctx->index_sem);
|
||||||
|
@ -968,6 +969,7 @@ process_blocks:
|
||||||
* ======================================================================
|
* ======================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
printf("Using similarity based dedupe index.\n");
|
||||||
cfg = ctx->arc;
|
cfg = ctx->arc;
|
||||||
assert(cfg->similarity_cksum_sz == sizeof (uint64_t));
|
assert(cfg->similarity_cksum_sz == sizeof (uint64_t));
|
||||||
seg_heap = (uchar_t *)(ctx->g_blocks) - cfg->segment_sz * cfg->chunk_cksum_sz;
|
seg_heap = (uchar_t *)(ctx->g_blocks) - cfg->segment_sz * cfg->chunk_cksum_sz;
|
||||||
|
|
Loading…
Reference in a new issue