tdb_transaction_cancel

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Apr 11 05:25:33 GMT 2007


On Tue, Apr 10, 2007 at 09:52:47PM -0700, Jeremy Allison wrote:
> I think you're correct. Here's a patch - let me know what
> you think.
> 
> Jeremy.

> Index: tdb/common/transaction.c
> ===================================================================
> --- tdb/common/transaction.c	(revision 22131)
> +++ tdb/common/transaction.c	(working copy)
> @@ -523,6 +523,8 @@
>  				   F_UNLCK,F_SETLKW, 0, 1);
>  		}
>  		tdb->num_locks = 0;
> +		tdb->num_lockrecs = 0;
> +		SAFE_FREE(tdb->lockrecs);
>  	}
>  
>  	/* restore the normal io methods */

Looks 100% correct. This is just a bug on my side. Thanks a
lot for finding this!

Jeremy, I'll leave that to you to check in!

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070411/15468d15/attachment.bin


More information about the samba-technical mailing list