List:Commits« Previous MessageNext Message »
From:Jørgen Løland Date:August 8 2008 9:41am
Subject:Re: bzr commit into mysql-6.0-backup branch (oystein.grovlen:2676)
Bug#36795
View as plain text  
Patch good to push.

Oystein Grovlen wrote:
> #At file:///export/home/tmp/oysteing/mysql/mysql-6.0-backup/
> 
>  2676 Oystein Grovlen	2008-08-06
>             Bug#36795 Concurrency issues when starting backups in parallel.
>         
>       Raise condition on Backup_restore_ctx::mem_alloc since it is static.
>       The failing backup will set mem_alloc to null when terminating.  The
>       next time the running backup wants to allocate memory, an assert will
>       fail.
>             
>       Makes mem_alloc non-static.  That way, concurrent backups will not
>       interfere.  This requires that it is possible to bstream_alloc to find
>       the right Backup_restore_ctx to use.  Fixes that by changing the
>       static is_running flag to a static pointer, current_op, to the
> Backup_restore_ctx
>       of the currently running backup.  If the pointer is null, it means
>       that no backup is currently running.

-- 
Jørgen Løland
Thread
bzr commit into mysql-6.0-backup branch (oystein.grovlen:2676) Bug#36795Oystein Grovlen6 Aug
  • RE: bzr commit into mysql-6.0-backup branch (oystein.grovlen:2676) Bug#36795Chuck Bell7 Aug
    • Re: bzr commit into mysql-6.0-backup branch (oystein.grovlen:2676)Bug#36795Øystein Grøvlen8 Aug
  • Re: bzr commit into mysql-6.0-backup branch (oystein.grovlen:2676)Bug#36795Jørgen Løland8 Aug