Skip to content

Commit a3000c2

Browse files
committed
synchronizing LnkTracker methods
1 parent 2ee41d8 commit a3000c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/emc/ecs/nfsclient/nfs/io/LinkTracker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public LinkTracker() {
6363
* If there are too many links in the chain (more than
6464
* MAXSYMLINKS)
6565
*/
66-
final F addLink(String path) throws IOException {
66+
synchronized final F addLink(String path) throws IOException {
6767
if (++linksTraversed > MAXSYMLINKS) {
6868
throw new IllegalArgumentException("Too many links to follow (> " + MAXSYMLINKS + ").");
6969
}
@@ -92,7 +92,7 @@ final F addLink(String path) throws IOException {
9292
* @param file
9393
* The file to which that link was finally resolved.
9494
*/
95-
public void addResolvedPath(String path, F file) {
95+
synchronized void addResolvedPath(String path, F file) {
9696
_resolvedPaths.put(path, file);
9797
_unresolvedPaths.remove(path);
9898
}

0 commit comments

Comments
 (0)