On Mon, 29 Nov 2004 12:50:53 -0500, Coders Robert Story
<[EMAIL PROTECTED]> wrote:
> On Thu, 25 Nov 2004 08:20:03 +0100 P wrote:
> PK> > PK> 2) I got some sigsev's after deleting table row. I've changed
> PK> >
> PK> > How are you deleting the table row?
> PK>
> PK>  I had turned
> PK> OFF ,,dont updata caceh on set'' option (flag in _interface.c file).
> 
> Ah, well that's exactly the problem. That will cause the cache to be released
> *before* the commit is called, so the data context will no longer be valid. 
> You
> really shouldn't muck around in the interface.c file. If you think you need
> changes there, let me know, and we can see if there is another way to do
> what you want, or add a safe interface to do what you want.

I think that ,,invalidate cache ofter set'' will be nice option. 

> In this particular case, what you want to do is to set a flag to let the
> interface code know that you have removed a row:
> 
>         rowreq_ctx->rowreq_flags |= MFD_ROW_DELETED;

But there is no constant MFD_ROW_DELETED defined. 

> You would also want to clear that flag in the undo_commit code, where you call
> system to restore the interface.

I delete rows in irreversible_commit so there is no undo needed for that.
 
> PK> > Hmm... I'll have to think about it, but that sounds like a good idea...
> PK> :) And one more: add column_skip_flag to rowreq_ctx. Cache_load can
> PK> set some bits to '1' that mean that there is no values in some column.
> PK> Then _get can return MFD_SKIP for that column.
> 
> Hmmm... well, if the column will never have data (eg is isn't implemented),
> then you can specify valid_columns during registration, and it will be skipped
> way up at the table or table_container level.

In my case some columns can be ,,not implemented'' only in some rows.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to