]> source.dussan.org Git - archiva.git/commit
only close session if open
authorBrett Porter <brett@apache.org>
Thu, 31 Jul 2014 10:20:12 +0000 (20:20 +1000)
committerBrett Porter <brett@apache.org>
Thu, 31 Jul 2014 10:22:27 +0000 (20:22 +1000)
commit1e589ddd62ec068e3797f351566ff62274a549ba
tree02310dd7496b5e77b612e9741eac122c52070044
parent12a808a77d72b9d07f56efe04a1908c1ff8c4b1b
only close session if open

getJcrSession will open one if needed, which close does not need to do. This
also caused some timing issues in the REST tests as it concurrently operated
on the same session
archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java