On 07/25/2014 07:01 PM, Andrew Johnson wrote:
...
> Is this change actually correct? ... No, it's not, it gives me one
> lock-set per record even when there are DB links connecting all my
> records together. This is from a test database with lots of DB links
> in it:
I've added test code to detect this problem if it comes up again. It
has a test database with 6 records in 3 locksets. It then checks that
pairs of records are, or are not, in the same lockset.
Before Andrew's fix it fails like:
> ok 1 - dbLockGetLockId("reca")!=dbLockGetLockId("recb")
> ok 2 - dbLockGetLockId("reca")!=dbLockGetLockId("recc")
> ok 3 - dbLockGetLockId("reca")!=dbLockGetLockId("recd")
> ok 4 - dbLockGetLockId("reca")!=dbLockGetLockId("rece")
> ok 5 - dbLockGetLockId("reca")!=dbLockGetLockId("recf")
> not ok 6 - dbLockGetLockId("recb")==dbLockGetLockId("recc")
> ok 7 - dbLockGetLockId("recb")!=dbLockGetLockId("recd")
> ok 8 - dbLockGetLockId("recb")!=dbLockGetLockId("rece")
> ok 9 - dbLockGetLockId("recb")!=dbLockGetLockId("recf")
> ok 10 - dbLockGetLockId("recc")!=dbLockGetLockId("recd")
> ok 11 - dbLockGetLockId("recc")!=dbLockGetLockId("rece")
> ok 12 - dbLockGetLockId("recc")!=dbLockGetLockId("recf")
> not ok 13 - dbLockGetLockId("recd")==dbLockGetLockId("rece")
> not ok 14 - dbLockGetLockId("recd")==dbLockGetLockId("recf")
> not ok 15 - dbLockGetLockId("rece")==dbLockGetLockId("recf")
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- 3.15 assertion failure from dbLock.c on IOC exit Andrew Johnson
- Re: 3.15 assertion failure from dbLock.c on IOC exit Michael Davidsaver
- Re: 3.15 assertion failure from dbLock.c on IOC exit Michael Davidsaver
- Re: 3.15 assertion failure from dbLock.c on IOC exit Andrew Johnson
- Navigate by Date:
- Prev:
Re: 3.15 assertion failure from dbLock.c on IOC exit Andrew Johnson
- Next:
running RTEMS test harness in QEMU Michael Davidsaver
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: 3.15 assertion failure from dbLock.c on IOC exit Andrew Johnson
- Next:
running RTEMS test harness in QEMU Michael Davidsaver
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|