[SERVER-1387] cloneCollection should use exhaust mode Created: 09/Jul/10 Updated: 12/Jul/16 Resolved: 16/Jul/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.5 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Aaron Staple | Assignee: | Aaron Staple |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Comments |
| Comment by auto [ 15/Jul/10 ] |
|
Author: {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}Message: |
| Comment by auto [ 15/Jul/10 ] |
|
Author: {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}Message: |
| Comment by Aaron Staple [ 12/Jul/10 ] |
|
Also, the query() function that triggers QueryOption_Exhaust doesn't support additional flags like QueryOption_CursorTailable |
| Comment by Aaron Staple [ 12/Jul/10 ] |
|
cloneCollection requires a tailable cursor, but it looks like exhaust mode will loop indefinitely on a tailable cursor because the cursor will never disappear: while( 1 ) { if( c->getCursorId() == 0 ) c->exhaustReceiveMore(); |