/* We found an object we like */
o->refcnt++;
UNLOCK(&oh->mtx);
+ if (params->log_hash)
+ WSP(sp, SLT_Hash, "%s", oh->hash);
(void)hash->deref(oh);
return (o);
}
grace_o->refcnt++;
}
UNLOCK(&oh->mtx);
+ if (params->log_hash)
+ WSP(sp, SLT_Hash, "%s", oh->hash);
/*
* XXX: This may be too early, relative to pass objects.
* XXX: possibly move to when we commit to have it in the cache.
"NB: Must be specified with -p to have effect.\n",
0,
"8192", "bytes" },
+ { "log_hashstring", tweak_bool, &master.log_hash, 0, 0,
+ "Log the hash string to shared memory log.\n",
+ 0,
+ "off", "bool" },
{ "diag_bitmap", tweak_diag_bitmap, 0, 0, 0,
"Bitmap controlling diagnostics code:\n"
" 0x00000001 - CNT_Session states.\n"