Commit 0fdd179
committed
fix(libkb): take the write lock in the remaining cache setters
SetImplicitTeamConflictInfoCacher, SetImplicitTeamCacher and
SetKVRevisionCache mutated GlobalContext fields while holding only
cacheMu.RLock(), which races with concurrent getters.
Also document why the annotated team cache ages entries from the load
start rather than the load finish.1 parent cd6db7d commit 0fdd179
2 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | | - | |
758 | | - | |
| 757 | + | |
| 758 | + | |
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | | - | |
770 | | - | |
| 769 | + | |
| 770 | + | |
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | 781 | | |
785 | 782 | | |
786 | 783 | | |
| |||
793 | 790 | | |
794 | 791 | | |
795 | 792 | | |
796 | | - | |
797 | | - | |
| 793 | + | |
| 794 | + | |
798 | 795 | | |
799 | 796 | | |
800 | 797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
| |||
0 commit comments