use sync.Map to prevent race condition
Describe the MR
Replaces the map
for the TSDB schema cache by a sync.Map
.
Why was this MR needed?
There existed a possible race condition that resulted in a server panic.
Extra-care points?
Does this MR meet the acceptance criteria?
-
Documentation created/updated -
CHANGELOG updated -
Unit Tests added/updated
What are the relevant issue numbers?
License and Developer Certificate of Origin
-
By contributing to Pantomath SAS, You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Pantomath SAS. Except for the license granted herein to Pantomath SAS and recipients of software distributed by Pantomath SAS, You reserve all right, title, and interest in and to Your Contributions. All Contributions are subject to the following Developer Certificate of Origin and License terms.
Edited by Charles Francoise