[SERVER-16962] Should be able to compact capped collections with WiredTiger Created: 20/Jan/15  Updated: 15/May/18  Resolved: 15/Oct/15

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.2.0-rc1

Type: Improvement Priority: Minor - P4
Reporter: Daniel Pasette (Inactive) Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: wiredtiger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-8986 Should be able to compact capped coll... Closed
Backwards Compatibility: Fully Compatible
Sprint: QuInt B (11/02/15)
Participants:

 Description   

We're checking for whether a collection can be compacted at the wrong level, as with WiredTiger, you can easily call compact

> db.oplog.rs.runCommand('compact', {force:true})
{ "ok" : 0, "errmsg" : "cannot compact a capped collection" }



 Comments   
Comment by Githook User [ 15/Oct/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-16962 Allow compact on capped collection if supported by storage engine

MMAPv1 will not support this operation.
Branch: master
https://github.com/mongodb/mongo/commit/3954decf0ffbf69de2f3d72de741506086aa2a23

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