On 04/16/12 12:55, Claudio Valderrama C. wrote: >> -----Original Message----- >> From: Alex Peshkoff [mailto:peshk...@mail.ru] >> Sent: Lunes, 16 de Abril de 2012 3:00 >> >> On 04/15/12 13:50, Claudio Valderrama C. wrote: >>> Those functions use -1 to indicate a special condition. >>> >> It's nice to use ~0 as a special condition instead -1. > The problem with those solutions is that they assume the max value cannot be > reached normally. Are we sure in this case?
This depends upon our code checking the case when transaction ID is reaching it's upper limit. As far as I remember, currently we have a kind of 'soft' limit trying to stop with reserve about 8 or 16 transactions to make it possible to perform database's backup. 'Hard' limit can be reached only by gbak's attachment. I.e. with transaction ID use of ~0 as special condition should be OK. Certainly, check for 'hard' limit should be done taking that into an account. ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel