diff options
| author | chrislu <chris.lu@gmail.com> | 2025-10-30 20:46:28 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-10-30 20:46:28 -0700 |
| commit | c238153a3b2aa8811748b241e55a72b47ced71c7 (patch) | |
| tree | 0e520caaa01c9199222032f9b7912a8c843cc325 /postgres-examples/test_client.py | |
| parent | c4c4d227a17ebd9d7dec879ee1a693df5559d9cb (diff) | |
| download | seaweedfs-c238153a3b2aa8811748b241e55a72b47ced71c7.tar.xz seaweedfs-c238153a3b2aa8811748b241e55a72b47ced71c7.zip | |
Add clarifying comments to vidMap helper functions
Added inline documentation to each helper function (addLocation, deleteLocation,
addEcLocation, deleteEcLocation) explaining the two-level locking strategy:
- RLock on vidMapLock prevents resetVidMap from swapping the pointer
- vidMap has internal locks that protect the actual map mutations
- This design provides optimal concurrency
The comments make it clear why RLock (not Lock) is correct and intentional,
preventing future confusion about the locking strategy.
Diffstat (limited to 'postgres-examples/test_client.py')
0 files changed, 0 insertions, 0 deletions
