Download & Extend

Add support for mongo 1.3 drivers

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

Issue Summary

Add support for the mongo 1.3 drivers and read perferences. Mongo 1.3 driver for php makes a number of changes including how slave operations are targetted and also makes all write operations write safe. This patch (which will appear shortly) loads the new mongoclient class if available and also updates all operations to be safe so as 1.3 and 1.2 drivers behaviour in the exact same way.

Comments

#1

Status:active» needs review
AttachmentSizeStatusTest resultOperations
mongo-1.3.d.o.patch20.15 KBTest request sentNoneView details

#2

Tweaks after speaking to chx

AttachmentSizeStatusTest resultOperations
mongo-1.3.d.o.patch20.06 KBTest request sentNoneView details

#3

Reroll

AttachmentSizeStatusTest resultOperations
mongo-1.3-r.patch21.24 KBTest request sentNoneView details

#4

Status:needs review» needs work

+++ b/README.txtundefined
@@ -189,6 +211,22 @@ the hypothetical connection alias 'logginghost'
+    db_connection => 'logginghost',

Missing single quotes around db_connection also db_conncetion can have the same options as without using read_preference maybe put that in as documentation, host, db..

mongodb_session/mongodb_session.module has an update you missed

drush_mongodb_migrate in mongodb_migrate/mongodb_migrate.drush.inc has an insert function that might need safe or w=0

#5

Status:needs work» needs review

Tweaked

AttachmentSizeStatusTest resultOperations
mongo.1.3.patch22.8 KBTest request sentNoneView details

#6

Re-roll, as today we uncovered an issue on our server where by attempts were being made to update a slave. This patch restricts the cron update to the connection the queue belongs too. In some ways it may need a refractoring.

AttachmentSizeStatusTest resultOperations
1.3.patch23.89 KBTest request sentNoneView details

#7

Fixes up alias logic for backwards comptability

AttachmentSizeStatusTest resultOperations
mongo.1.3.patch24.11 KBTest request sentNoneView details
nobody click here