Commit 1a21ed8
committed
Don't close StringReaders because of (1) batching, (2) resources are not
allocated, and (3) they'll be GC'd away.
See apache#3127 where closing
StringReaders too soon can cause problems.1 parent 82c707f commit 1a21ed8
File tree
2 files changed
+14
-3
lines changed- log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/jdbc
- src/changelog/.2.x.x
2 files changed
+14
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
945 | 946 | | |
946 | 947 | | |
947 | 948 | | |
948 | | - | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
949 | 953 | | |
950 | 954 | | |
951 | 955 | | |
| |||
990 | 994 | | |
991 | 995 | | |
992 | 996 | | |
993 | | - | |
| 997 | + | |
994 | 998 | | |
995 | 999 | | |
996 | 1000 | | |
| |||
1040 | 1044 | | |
1041 | 1045 | | |
1042 | 1046 | | |
1043 | | - | |
1044 | 1047 | | |
1045 | 1048 | | |
1046 | 1049 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments