On Tue, 27 Jun 2006 20:45:08 +0400 Konstantin wrote:
KA> There is state "row create" in chart of SET processing for baby steps
KA> (drown in file agent/helpers/baby_steps.c, lines 140-204). According to
KA> this chart, it activates if lookup failures. But, mode
KA> MODE_BSTEP_ROW_CREATE activates in case of success of previous lookup, but
KA> there are no respective callback 'row_creation' for all tables, supported
KA> with "baby steps" scheme.
KA> 
KA> Instead, new row is created, if it is not found, in particular
KA> _object_lookup callback, and this code is generated automatically (as I
KA> can see in file local/mib2c-conf.d/mfd-interface.m2c and in lot of
KA> generated files for particular tables). 
KA> 
KA> This leads to bug with GET for table leaf with OID semantically correct
KA> index part, but non-existant entry. (For example, such GET may appear just
KA> after remove of row). 
KA> 
KA> May I ask, what are conceptual plans with this "new row creation"? Why
KA> working MFD stabs are contradict with "baby steps" chart, and callback
KA> row_creations is never initialized? Which approach is more correct and
KA> which is depricated? 

Your analysis is spot on. It's been a while since I wrote all that code, so
it's probably the case that I started working on tables that didn't support
row creation, and thus didn't use the row creation callback. When I moved on
to the row creation table, I probably had forgotten about that state.

I think the correct fix will be to use the row creation state, but this will
require a change in the baby steps flow, to allow it to progress to the next
step even when there are 'errors' in the lookup phase.

I'll have to look at the minimal patch appropriate to fix modules in 5.3.x
(after 5.3.1 goes out), and do the proper fix in mainline cvs.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to