On Sun, 2010-03-28 at 22:55 +0200, Michael Rasmussen wrote:
> Hi Andrew,
>
> Seems there are still problems regarding locks since active locks are
> never flushed after timeout.
>
> davical=# select current_timestamp, locks.* from locks;
> now |
> dav_name | opaquelocktoken
> | type | scope | depth | owner | timeout | start
> -------------------------------+----------------------------------------------------------+--------------------------------------+-------+-----------+-------+-------+----------+----------------------------
> 2010-03-28 22:54:17.234297+02
> | /mir/home/libcaldav-5081183482b5b610c7c8c4ffe84e0f72.ics |
> c2666286-cdba-ca44-e555-c91e56af34f6 | write | exclusive | 9999
> | | 00:05:00 | 2010-03-28 21:12:30.129625 (1 row)
Good catch.
Looking at the code it appears that the expiry is not even being
checked. Are you using locks in your application?
Cheers,
Andrew.
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
You have a deep appreciation of the arts and music.
------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100329/f20d8ae9/attachment.pgp>
-------------- next part --------------
> Hi Andrew,
>
> Seems there are still problems regarding locks since active locks are
> never flushed after timeout.
>
> davical=# select current_timestamp, locks.* from locks;
> now |
> dav_name | opaquelocktoken
> | type | scope | depth | owner | timeout | start
> -------------------------------+----------------------------------------------------------+--------------------------------------+-------+-----------+-------+-------+----------+----------------------------
> 2010-03-28 22:54:17.234297+02
> | /mir/home/libcaldav-5081183482b5b610c7c8c4ffe84e0f72.ics |
> c2666286-cdba-ca44-e555-c91e56af34f6 | write | exclusive | 9999
> | | 00:05:00 | 2010-03-28 21:12:30.129625 (1 row)
Good catch.
Looking at the code it appears that the expiry is not even being
checked. Are you using locks in your application?
Cheers,
Andrew.
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
You have a deep appreciation of the arts and music.
------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100329/f20d8ae9/attachment.pgp>
-------------- next part --------------