[DOCS-842] Document what collection.stats() userFlags value will be if usePowerOf2Sizes is enabled Created: 04/Dec/12 Updated: 30/Oct/23 Resolved: 04/Dec/12 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ian Daniel | Assignee: | Ed Costello |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Participants: | |||||||||||||
| Days since reply: | 11 years, 11 weeks, 1 day ago | ||||||||||||
| Description |
|
In http://docs.mongodb.org/manual/reference/collection-statistics/, in the userFlags section we state that the only user flag is usePowerOf2Sizes. However we do not state what the value of userFlags will be if usePowerOf2Sizes is enabled (or disabled). From my testing, userFlags is set to 1 if usePowerOf2Sizes is enabled, and userFlags is set to 0 if usePowerOf2Sizes is disabled. |
| Comments |
| Comment by auto [ 04/Dec/12 ] | |||
|
Author: {u'date': u'2012-12-04T17:57:33Z', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: merge: | |||
| Comment by auto [ 04/Dec/12 ] | |||
|
Author: {u'date': u'2012-12-04T14:54:29Z', u'email': u'epc@10gen.com', u'name': u'Ed Costello'}Message: | |||
| Comment by Ed Costello [ 04/Dec/12 ] | |||
|
Pushed to github. | |||
| Comment by Ed Costello [ 04/Dec/12 ] | |||
|
For now I'm documenting that it's 1 if usepowerof2sizes is set. If/when there's additional userflags then we'll add commentary about needing to bitwise-and the value to determine which userflags have been set. | |||
| Comment by Eric Milkie [ 04/Dec/12 ] | |||
|
The relevant code for userFlags is in namespace_details.h:194.
So this means the zero-th bit of UserFlags is for UsePowerOf2Sizes. The other bits in the integer are not yet assigned to any meaningful value. |