[12:39:24] <guardian> Hello. I'm facing the following situation. I have a 1 node replica set, to benefit from transactions. Today I got a power failure which corrupted the data. I sucessfully used mongod --repair. Now I would like to re-activate the 1-node replica set. Is it enough to remove the "repair": "true" marker?
[12:39:40] <guardian> (btw I have backups etc, I'm just exploring this way for the sake of learning)
[23:45:23] <d4rkp1r4t3> guardian: https://docs.mongodb.com/v3.6/reference/method/db.repairDatabase/#behavior - "Avoid running repairDatabase against a replica set" (aka --repair). You only need to --repair on standalone. Most of the time restarting the node is enough to get it working again. WiredTiger will create a checkpoint every 60 seconds which you can recover from and replays the journal from there to get you
[23:45:23] <d4rkp1r4t3> back to near point in time from the time of failure. Hope this helps