Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#20 clusterwide flock

1.9
open-fixed
Roger Tsang
Filesystem (18)
3
2009-10-27
2005-06-01
Jakob Goldbach
No

I would like that BSD style flock is made clusterwide.

Many webapps in php is using flock.

Also, php itself is using flock for locking session
files. (although, you can use somthing else than files
for session data).

Discussion

  • Logged In: NO

    OpenSSI-1.9 may already have this, not sure yet.

     
  • Roger Tsang
    Roger Tsang
    2007-04-24

    • status: open --> closed
     
  • Roger Tsang
    Roger Tsang
    2007-04-24

    Logged In: YES
    user_id=1246761
    Originator: NO

    Supported in SSI-1.9

     
  • Roger Tsang
    Roger Tsang
    2007-04-25

    Logged In: YES
    user_id=1246761
    Originator: NO

    Take that back flock is not clusterwide in SSI-1.9. flock needs to be converted to posix style lock to be clusterwide. For now use fcntl or another PHP session.save_handler.

     
  • Roger Tsang
    Roger Tsang
    2007-04-25

    • status: closed --> open
     
  • Roger Tsang
    Roger Tsang
    2007-06-17

    • priority: 5 --> 3
    • labels: --> Filesystem
     
  • Roger Tsang
    Roger Tsang
    2009-03-22

    Adding new CFS code to convert flock to POSIX style lock.

     
  • Roger Tsang
    Roger Tsang
    2009-03-22

    • assigned_to: nobody --> rogertsang
    • status: open --> open-remind
     
  • Roger Tsang
    Roger Tsang
    2009-03-24

    • status: open-remind --> open-accepted
     
  • Roger Tsang
    Roger Tsang
    2009-03-24

    checked-in

     
  • Roger Tsang
    Roger Tsang
    2009-05-24

    • milestone: --> 1.9
     
  • Roger Tsang
    Roger Tsang
    2009-05-24

    clusterwide flock() in CVS still needs a bit of work, but should be ready by 1.9.6 release.

     
  • Roger Tsang
    Roger Tsang
    2009-05-29

    Try attached patch. Apply against CVS.

     
  • Roger Tsang
    Roger Tsang
    2009-05-29

     
    Attachments
  • Roger Tsang
    Roger Tsang
    2009-10-27

    • status: open-accepted --> open-fixed
     
  • Roger Tsang
    Roger Tsang
    2009-10-27

    checked-in