fix: resolve critical namespace lock bug and improve test reliability

This commit is contained in:
安正超
2025-05-28 11:46:46 +08:00
parent 87a4ed2107
commit 181e08cb8e
2 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ impl NsLockMap {
nslk.lock.un_lock().await;
}
nslk.reference -= 0;
nslk.reference -= 1;
if nslk.reference == 0 {
w_lock_map.remove(&resource);