Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C#] Fix data races between copy to tail and concurrent upserts (#501)
* [bug fix] copy from read-only region to tail now won't race with upserts * use InternalTryCopyToTail to handle copy to tail in general * add code example to preserve recordInfo in compact * fix bugs in previous commit * update comments InternalTryCopyToTail takes two sessions for copy from disk to tail * indent * fix bugs copy to tail now auto retries due to failed CAS compact now doesn't copy to read cache * optimize InternalCopyToTail retry without find entry again. * temp k->addr in Compact * take back try copy to tail * temporarily comment out assert for passing check * clean up comment move logical address check in Compact to debug * address comments suggested by Ted remove debug code in compact and CopyToTail add comments Co-authored-by: Badrish Chandramouli <badrishc@microsoft.com>
- Loading branch information
Showing
4 changed files
with
219 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.