You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Mike Matrigali <mi...@sbcglobal.net> on 2004/10/06 01:48:57 UTC
Re: [PATCH] Fix to prevent empty log file switches that could cause
recovery failures
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have committed this patch as revision 53832.
Suresh Thalamati wrote:
| I would like to submit a fix for a bug in log file switching.
|
| problem : In multi-threaded application when lot of threads are
| executing commits in parallel, empty log files might
| be created. Recovery log scan does not expect empty log files
| while scanning log records to undo incomplete
| transactions..
|
| Fix:
| a) prevent empty log switches by rechecking the conditions that
| triggers the log switches
| inside synchronized blocks.
| b) Make backward scans skip the empty log files.
|
| Please review the changes in the attached diff file.
|
| I'm employed by IBM and have been working on the Cloudscape product for
| few years. This is my first
| submission to derby.
|
| -suresh
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBYzLnEpeslyHqPs0RAlGzAKDsBmJ3XMPBMTztE640J3VRjHh2mACeMHQ3
2rKnhTWt/vqZDKr6V7x2oBI=
=Bshz
-----END PGP SIGNATURE-----