List:Internals« Previous MessageNext Message »
From:Thimble Smith Date:January 17 2001 11:00am
Subject:Re: Access concurrency with BDB tables.
View as plain text  
On Wed, Jan 17, 2001 at 11:55:18AM +0100, Patrick FICHE wrote:
> It seems that I found a bug in lock management for BDB tables.
> This occurs in the store_lock method in ha_berkeley.cpp module.
> 
>   if (lock_type != TL_IGNORE && lock.type == TL_UNLOCK)
> 
> should probably be changed to 
> 
>   if (lock_type != TL_IGNORE && lock.type != TL_UNLOCK)

I thought so too when I first saw that code.  But it's two
different variables, lock_type and lock.type.

Tim

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Tim Smith <tim@stripped>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Development Team
/_/  /_/\_, /___/\___\_\___/   Helsinki, Finland (for a few weeks)
       <___/   www.mysql.com
Thread
Access concurrency with BDB tables.Patrick FICHE17 Jan
  • Re: Access concurrency with BDB tables.Thimble Smith17 Jan