btree->prune_timestamp is updated sequentially when we pick up a new checkpoint. There is no concurrent writes to the variable. In addition, the value is increased monotonically. Therefore, either the reader reads the old value or the newly written value doesn't impact correctness. We can safely read it using relaxed ordering as well.
Use relaxed read and write for btree->prune_timestamp
- Assignee:
-
Chenhao Qu
- Reporter:
-
Chenhao Qu
- Votes:
-
0 Vote for this issue - Watchers:
-
1 Start watching this issue
- Created:
- Updated:
- Resolved: