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
For Gerrit Dashboard: MB-15990 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
54218,3 | MB-15990: KVShard::setLowPriorityVbSnapshotFlag not working as expected. | master | ep-engine | Status: MERGED | +2 | +1 |
54290,2 | MB-15990: KVShard::setLowPriorityVbSnapshotFlag not working as expected. | sherlock | ep-engine | Status: MERGED | +2 | +1 |
54305,5 | Merge remote-tracking branch 'couchbase/sherlock' | master | ep-engine | Status: MERGED | +2 | +1 |