pdrake reported in IRC that mongo version that comes with ubuntu 10.04 doesn't support mongodb_next_id need to put hook_requirements in to require mongo server version hight than 1.3

Files: 
CommentFileSizeAuthor
#3 server_version-1808114-3.patch2.03 KBRok Žlender
Test request sent.
[ View ]
#2 server_version-1808114-2.patch2.03 KBRok Žlender
Test request sent.
[ View ]

Comments

Quick code that does what we need putting it here so I don't lose it

<?php
$connection
= new Mongo('mongodb://localhost');
$db = $con->selectDB('drupal');
$return = $db->execute('db.version();');
$version = $return['retval'];
version_compare($version, '1.3');
?>

Assigned:Unassigned» Rok Žlender
Status:Needs work» Needs review
StatusFileSize
new2.03 KB
Test request sent.
[ View ]

I think attached patch should do the job.

StatusFileSize
new2.03 KB
Test request sent.
[ View ]

Patch above has some whitespace problems.