42. Which of the following statements are true about the oplog.rs collection? Check all that apply:
题目选项
- A.It stores the statements MongoDB uses to replicate data.
- B.Every data-bearing node in a replica set must have an oplog.rs collection.
- C.When full, it overflows into a new collection.
答案置信度:高
正确答案:A、B
解析语言:中文
oplog.rs 保存的是 MongoDB 用来复制数据的(幂等)操作记录(A),每个存放数据的副本集成员都必须有自己的 oplog.rs(B)。C 错:oplog.rs 是固定大小的 capped collection,写满后覆盖最旧的记录,而不会"溢出到新集合"。