Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.1.0, 4.0.0
-
Security Level: Public
-
All
-
Untriaged
-
Unknown
Description
bool KVShard::setLowPriorityVbSnapshotFlag(bool lowPriority)
{ bool inverse = !lowPriority; return lowPrioritySnapshot.compare_exchange_strong(inverse, lowPrioritySnapshot); }the compare exchange will compare lowPrioritySnapshot with !lowPriority if they are != nothing changes. If they are == lowPrioritySnapshot is replaced with lowPrioritySnapshot. And hence it still doesn't change.
The fix is that the 2nd parameter should be changed from lowPrioritySnapshot to lowPriority.
Attachments
Issue Links
- relates to
-
MB-12116 KV Scalability
- Closed