Need support for locking framework

Files: 
CommentFileSizeAuthor
#7 mongodb_lock_1180056_7.patch10.84 KBcrea
Test request sent.
[ View ]
#2 mongodb_lock_1180056.patch9.11 KBcrea
Test request sent.
[ View ]

Comments

Component:Miscellaneous» Locking

Version:7.x-1.x-dev» 6.x-1.x-dev
Status:Active» Needs review
StatusFileSize
new9.11 KB
Test request sent.
[ View ]

First version for D6.

We could also use MongoId($name) as an _id

Need progressing lock_wait() like in the Memcache module

Title:Implement lock.inc (D6 & D7)Create locking framework implementation

Status:Needs review» Needs work

Status:Needs work» Needs review
StatusFileSize
new10.84 KB
Test request sent.
[ View ]

Updated patch. Added variable collection names. Borrowed progressive lock_wait() implementation from Memcache project and also included configurable sleep intervals.

Status:Needs review» Needs work

Looks like using safe updates was not good idea because MongoDB syncs that to disk...But can we use it without safe option at all ? We need to be sure about the lock.

I wasn't paying attention. There's a separate fsync option

"fsync"

Boolean, defaults to FALSE. Forces the insert to be synced to disk before returning success. If TRUE, a safe insert is implied and will override setting safe to FALSE.

Status:Needs work» Needs review