[SERVER-14642] running compact resets systemFlag to 0 Created: 21/Jul/14  Updated: 21/Sep/15  Resolved: 22/Jul/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Storage
Affects Version/s: 2.6.3
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: rohit.nijhawan@10gen.com Assignee: Unassigned
Resolution: Won't Fix 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
Operating System: ALL
Steps To Reproduce:

db.createCollection( "x2")
db.x2.stats().systemFlags
//db.runCommand({collMod:"x2",usePowerOf2Sizes:false})
db.runCommand({compact:"x2"})
db.x2.stats().systemFlags

Participants:

 Description   

The symptom is that:
When compact is run, the systemFlags bit is set to 0.

I believe it is because in
collection_compact.cpp

 Status status = _indexCatalog.dropAllIndexes( true );

leads to
index_catalog.cpp

            _details->clearSystemFlag( NamespaceDetails::Flag_HaveIdIndex );

But then it's never re-set for the rebuild of the _id index again.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 22/Jul/14 ]

That flag is no longer used in 2.6 in any path I believe.

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