time_t timeout)
{
int ret;
- char* val;
+ char* val = NULL;
time_t last_stabilize;
static int writecount;
if (!gencache_init()) return False;
if (gencache_have_val(keystr, blob, timeout)) {
- DEBUG(10, ("Did not store value for %s, we already got it\n",
- keystr));
+ if (CHECK_DEBUGLVL(10)) {
+ bool ok;
+
+ ok = gencache_get(keystr, talloc_tos(), &val, &timeout);
+ if (!ok) {
+ DEBUG(10, ("Did not store value for key=[%s]: "
+ "It exists, but failed failed to "
+ "get it from the db!\n", keystr));
+ } else {
+ DEBUG(10, ("Did not store value for key=[%s], "
+ "we already got it: val=[%s]\n",
+ keystr, val));
+ }
+ TALLOC_FREE(val);
+ }
+
return true;
}