[SERVER-15625] systemFlags missing from collStats command result Created: 13/Oct/14  Updated: 26/Apr/19  Resolved: 18/Jan/15

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: 2.7.7
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Robert Stam Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-20488 systemFlags reporting different value... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Participants:

 Description   

With prior versions of the server the result of the collStats command included a field called "systemFlags" as documented here:

http://docs.mongodb.org/manual/reference/command/collStats/#output

Here's the result of collStats with server version 2.6.5:

> db.version()
2.6.5
> db.runCommand({ create : "test" })
{ "ok" : 1 }
> db.runCommand({ collStats : "test" })
{
        "ns" : "test.test",
        "count" : 0,
        "size" : 0,
        "storageSize" : 8192,
        "numExtents" : 1,
        "nindexes" : 1,
        "lastExtentSize" : 8192,
        "paddingFactor" : 1,
        "systemFlags" : 1,
        "userFlags" : 1,
        "totalIndexSize" : 8176,
        "indexSizes" : {
                "_id_" : 8176
        },
        "ok" : 1
}

and here's the result of collStats with server version 2.7.7:

> db.version()
2.7.7
> db.runCommand({ create : "test" })
{ "ok" : 1 }
> db.runCommand({ collStats : "test" })
{
        "ns" : "test.test",
        "count" : 0,
        "size" : 0,
        "numExtents" : 1,
        "storageSize" : 8192,
        "nindexes" : 1,
        "lastExtentSize" : 8192,
        "paddingFactor" : 1,
        "userFlags" : 1,
        "totalIndexSize" : 8176,
        "indexSizes" : {
                "_id_" : 8176
        },
        "ok" : 1
}
>



 Comments   
Comment by Ian Whalen (Inactive) [ 26/Apr/19 ]

Switching "Drivers Changes Needed" from "Maybe" to "Not Needed" since this was closed as something other than Fixed.

Comment by Robert Stam [ 13/Oct/14 ]

We might not be using it internally for anything else, but it was part of the documented public API, and removing it is a backward breaking change.

If we intend to remove it anyway then the documentation needs to be updated.

Comment by Charlie Page [ 13/Oct/14 ]

systemFlags was to record the existence of _id in a collection. If that's now an invariant, are we using it for anything else? If not, perhaps it is better left off.

Generated at Thu Feb 08 03:38:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.