[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: pcache + back-sql



> > Can you point me to documentation about the pcache logging subsystem?
>
> slapd -d pcache
>
> Indeed, I can't find any mention of it in obvious places (slapo-pcache(5),
> admin guide under pcache overlay, loglevel directive in slapd.conf(5) or
> slapd-config(5)). I suggest you file a request for documentation update.
>
> p.
>
I tried that and slapd didn't recognize it. Looking at the code (which I took from HEAD 
yesterday), I can't see any reference to a pcache logging level (servers/slapd/bconfig.c):

static int
loglevel_init( void )
{
    slap_verbmasks  lo[] = {
        { BER_BVC("Any"),   (slap_mask_t) LDAP_DEBUG_ANY },
        { BER_BVC("Trace"), LDAP_DEBUG_TRACE },
        { BER_BVC("Packets"),   LDAP_DEBUG_PACKETS },
        { BER_BVC("Args"),  LDAP_DEBUG_ARGS },
        { BER_BVC("Conns"), LDAP_DEBUG_CONNS },
        { BER_BVC("BER"),   LDAP_DEBUG_BER },
        { BER_BVC("Filter"),    LDAP_DEBUG_FILTER },
        { BER_BVC("Config"),    LDAP_DEBUG_CONFIG },
        { BER_BVC("ACL"),   LDAP_DEBUG_ACL },
        { BER_BVC("Stats"), LDAP_DEBUG_STATS },
        { BER_BVC("Stats2"),    LDAP_DEBUG_STATS2 },
        { BER_BVC("Shell"), LDAP_DEBUG_SHELL },
        { BER_BVC("Parse"), LDAP_DEBUG_PARSE },
#if 0   /* no longer used (nor supported) */
        { BER_BVC("Cache"), LDAP_DEBUG_CACHE },
        { BER_BVC("Index"), LDAP_DEBUG_INDEX },
#endif
        { BER_BVC("Sync"),  LDAP_DEBUG_SYNC },
        { BER_BVC("None"),  LDAP_DEBUG_NONE },
        { BER_BVNULL,       0 }
    };

    return slap_verbmasks_init( &loglevel_ops, lo );
}

I can see lots of calls to Debug() in pcache.c, and with logging level set to -1 I can see
these messages in the log file, so I'm happy that caching is working, but it looks like
the pcache debug level is not fully implemented, or has been lost in a merge somewhere.

Chris