Skip to content

Commit

Permalink
refaco: 트랜잭션 동기화 매니저 unbind에 스레드 로컬에 대한 자원 해제 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
zillionme committed Oct 11, 2023
1 parent b2a6103 commit 22da3a4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public static void bindResource(DataSource key, ConnectionHolder value) {
public static ConnectionHolder unbindResource(DataSource key) {
Map<DataSource, ConnectionHolder> map = resources.get();
if (map.isEmpty() || !map.containsKey(key)) {
resources.remove();
return null;
}
return map.remove(key);
Expand Down

0 comments on commit 22da3a4

Please sign in to comment.