[SERVER-2198] getlasterror works oddly with sharding Created: 09/Dec/10 Updated: 04/Feb/11 Resolved: 04/Feb/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Mytton | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Duplicate | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mongos: Wed Dec 1 16:30:37 /home/david/mongodb/latest/bin/mongos db version v1.7.2-pre-, pdfile version 4.5 starting (--help for usage) mongod: Wed Nov 10 06:55:56 db version v1.7.3-pre-, pdfile version 4.5 PHP Version 5.3.3 |
||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Description |
|
The PHP remove() method set with safe => true is returning instantly and not outputting any count for the removed docs even though I can see the remove op in db.currentOp() try $collection = $sdDb->selectCollection('metrics'); try $error = $sdDb->lastError(); — $account['accountId'] = int — $error['err'] is null db.currentOp() { }, |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 04/Feb/11 ] |
|
There were a ton of fixed to getLastError in 1.7.4 and 1.7.5. |
| Comment by Kristina Chodorow (Inactive) [ 09/Dec/10 ] |
|
e.g., removing two elements through mongos: > db1.foo.bar.count() ) |