Posted by marcingy on February 19, 2013 at 11:39pm
5 followers
| 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
#2
Tweaks after speaking to chx
#3
Reroll
#4
+++ 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
Tweaked
#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.
#7
Fixes up alias logic for backwards comptability