How do the MongoDB journal file and oplog differ?

后端 未结 3 1812
名媛妹妹
名媛妹妹 2021-02-05 11:51

I have recently started on MongodDb and I\'m trying to explore on replica sets and crash recovery.

I have read it like journal file are write a head redo log file. oplog

3条回答
  •  迷失自我
    2021-02-05 12:03

    There must be a relationship between journal and oplog. when w=1 u commit to primary jouranl and also created an oplog entry for replset collection. I think at least in primary of a replSet - they both contain same update/delete/insert just in different format.

提交回复
热议问题