-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Storage
-
None
Both RocksDB and WiredTiger (I think) can execute compact() operation concurrently with read and write requests. However, mongo currently locks an entire database with MODE_X when it compacts: https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/compact.cpp#L146
Would it make sense to remove this?
- duplicates
-
SERVER-16413 Storage engines that allow online compaction should not take an exclusive lock
- Closed