Comment 6 for bug 377826

Revision history for this message
fmpwizard (diego-fmpwizard) wrote : Re: [Bug 377826] Re: Failure to detect error in allocating transcation_prealloc_size

Sure, I'll give it a try!

Thanks

   -Diego

On Wed, Aug 26, 2009 at 12:56 PM, Jay Pipes<email address hidden> wrote:
> Seems like a pretty straightforward fix:
>
> Either change the transaction_prealloc_size to a uint64_t or fix the
> throw_bounds_warning() function to not truncate/change the actual value
> returned by val_int() (which is of type int64_t...
>
> Joe, care to give it a try?
>
> -jay
>
> --
> Failure to detect error in allocating transcation_prealloc_size
> https://bugs.launchpad.net/bugs/377826
> You received this bug notification because you are a member of Drizzle-
> developers, which is subscribed to Drizzle.
>
> Status in A Lightweight SQL Database for Cloud and Web: Confirmed
>
> Bug description:
> Two problems with the variables-big.test in the big test suite.
>
> 1. Error is not detected when running the command:
>
> set session transaction_prealloc_size=1024*1024*1024*5;
>
> 2. Incorrect error message is being produced when running the command:
>
> set session transaction_prealloc_size=1024*1024*1024*4; The error message says:
>
> Error   1292    Truncated incorrect transaction_prealloc_size value: '0'
>
> and it should say:
>
> Error   1292    Truncated incorrect transaction_prealloc_size value: '4294967296'
>
> The big test suite is being run from on Hudson on drizzle-os (OpenSolaris x86) machine, see http://gorf.tangent.org/hudson/job/drizzle-drizzle-os-test-big/
>
> % diff suite/big/r/variables-big.re*
> 15c15
> < Error 1292    Truncated incorrect transaction_prealloc_size value: '0'
> ---
>> Warning       1292    Truncated incorrect transaction_prealloc_size value: '4294967296'
> 19a20,21
>> Warnings:
>> Warning       1292    Truncated incorrect transaction_prealloc_size value: '5368709120'
>

--
Diego Medina
Web Developer
http://www.fmpwizard.com