Download & Extend

Create locking framework implementation

Project:Mongodb
Version:6.x-1.x-dev
Component:Locking
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Need support for locking framework

Comments

#1

Component:Miscellaneous» Locking

#2

Version:7.x-1.x-dev» 6.x-1.x-dev
Status:active» needs review

First version for D6.

AttachmentSizeStatusTest resultOperations
mongodb_lock_1180056.patch9.11 KBTest request sentNoneView details

#3

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

#4

Need progressing lock_wait() like in the Memcache module

#5

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

#6

Status:needs review» needs work

#7

Status:needs work» needs review

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

AttachmentSizeStatusTest resultOperations
mongodb_lock_1180056_7.patch10.84 KBTest request sentNoneView details

#8

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.

#9

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.

#10

Status:needs work» needs review