musacivak / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

Contents listing and some operations are broken for sharded collections #179

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a sharded collection
2. Try to view it
3. Error is displayed: There is something wrong:invoke failed: JS Error: Error: 
can't use sharded collection from db.eval shell/db.js:30, please refresh the 
page to try again.

Original issue reported on code.google.com by kyryl.bilokurov on 16 Mar 2012 at 11:27

GoogleCodeExporter commented 8 years ago
The following patch partially fixes this issue by using the db command 
collStats in the following places:
- view of sharded collection
- view of sharded collection statistics
- view of sharded collection properties

Note that changing the properties doesn't work yet, as well as the update of 
objects in sharded collections.

Original comment by kyryl.bilokurov on 16 Mar 2012 at 1:09

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you, i will have a try later.

Original comment by iwind....@gmail.com on 3 May 2012 at 4:09

GoogleCodeExporter commented 8 years ago
Fixed in SVN repository, Thank you again.

Original comment by iwind....@gmail.com on 3 May 2012 at 4:54