[jira] [Updated] (JCR-3760) FileDataStore: reduce synchronization

2014-04-02 Thread Chetan Mehrotra (JIRA)

 [ 
https://issues.apache.org/jira/browse/JCR-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chetan Mehrotra updated JCR-3760:
-

Fix Version/s: 2.7.6

> FileDataStore: reduce synchronization
> -
>
> Key: JCR-3760
> URL: https://issues.apache.org/jira/browse/JCR-3760
> Project: Jackrabbit Content Repository
>  Issue Type: Improvement
>  Components: jackrabbit-data
>Reporter: Thomas Mueller
>Assignee: Thomas Mueller
> Fix For: 2.7.6
>
>
> The FileDataStore uses the following synchronization:
> synchronized (this) {
> if (!file.exists()) {
> return null;
> }
> ...
> File.exists calls are very slow, it would be better if this check could be 
> done outside of the synchronized block. I don't think this would cause any 
> issues.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (JCR-3760) FileDataStore: reduce synchronization

2014-03-27 Thread Thomas Mueller (JIRA)

 [ 
https://issues.apache.org/jira/browse/JCR-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller updated JCR-3760:


Description: 
The FileDataStore uses the following synchronization:

synchronized (this) {
if (!file.exists()) {
return null;
}
...

File.exists calls are very slow, it would be better if this check could be done 
outside of the synchronized block. I don't think this would cause any issues.

  was:
The FileDataStore uses the following synchronization:

{noformat}
synchronized (this) {
if (!file.exists()) {
return null;
}
...
{noformat}

File.exists calls are very slow, it would be better if this check could be done 
outside of the synchronized block. I don't think this would cause any issues.


> FileDataStore: reduce synchronization
> -
>
> Key: JCR-3760
> URL: https://issues.apache.org/jira/browse/JCR-3760
> Project: Jackrabbit Content Repository
>  Issue Type: Improvement
>  Components: jackrabbit-data
>Reporter: Thomas Mueller
>
> The FileDataStore uses the following synchronization:
> synchronized (this) {
> if (!file.exists()) {
> return null;
> }
> ...
> File.exists calls are very slow, it would be better if this check could be 
> done outside of the synchronized block. I don't think this would cause any 
> issues.



--
This message was sent by Atlassian JIRA
(v6.2#6252)