File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
java/org/apache/catalina/webresources Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,7 @@ public ResourceLock lockForRead(String path) {
382
382
resourceLock = resourceLocksByPath .get (key );
383
383
if (resourceLock == null ) {
384
384
resourceLock = new ResourceLock (key );
385
+ resourceLocksByPath .put (key , resourceLock );
385
386
}
386
387
resourceLock .count .incrementAndGet ();
387
388
}
@@ -419,6 +420,7 @@ public ResourceLock lockForWrite(String path) {
419
420
resourceLock = resourceLocksByPath .get (key );
420
421
if (resourceLock == null ) {
421
422
resourceLock = new ResourceLock (key );
423
+ resourceLocksByPath .put (key , resourceLock );
422
424
}
423
425
resourceLock .count .incrementAndGet ();
424
426
}
Original file line number Diff line number Diff line change 128
128
constructors or property related methods throw a checked exception.
129
129
(remm)
130
130
</fix >
131
+ <fix >
132
+ The previous fix for incosistent resource metadata during concurrent
133
+ reads and writes was incomplete. (markt)
134
+ </fix >
131
135
</changelog >
132
136
</subsection >
133
137
<subsection name =" Coyote" >
You can’t perform that action at this time.
0 commit comments