-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication, Storage
-
Fully Compatible
-
Repl 2019-06-03, Repl 2019-06-17, Repl 2019-07-01, Repl 2019-07-15, Repl 2019-07-29, Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09
Currently, we set ignorePrepared on the recovery unit in waitForReadConcern. But it is confusing to do that as a part of that function because setting ignorePrepared doesn't have to do with waiting for read concern. It would be better if we move the logic outside of that function and call it separately. We should also add a note on waitForReadConcern so that any new callers of it evaluate whether they need to set ignorePrepared.
This would also help prevent future bugs caused by someone adding a place to return in waitForReadConcern early, which would accidentally skip setting ignorePrepared.
- is related to
-
SERVER-39074 Update outside transaction erasing update from committed prepared transaction
- Closed