Hi -

For the case where I am checking a date on a file (or in this case, a flag
indicating whether table data has changed), I have to set the
    cache->flags |= NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD;

as well as
    cache->flags |= NETSNMP_CACHE_DONT_FREE_EXPIRED;
    cache->flags |= NETSNMP_CACHE_DONT_AUTO_RELEASE;

as is mentioned in the tutorial.  Otherwise, the free gets called before I
make my check in the load routine.  Or was the idea to make the check in
the free routine?

Anyway, first GET after the load fails the same way as when I don't set the
flags - same as the other scenario.  FYI.

Thanks.


Kathy McLeod


------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to