Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tabs to spaces
  • Loading branch information
sten1ee committed Nov 4, 2019
commit 92daf6607a21c65b2e9ddf21944a9dc00e3bd6b2
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private void saveCollection(final XmldbURI collectionPath, Path targetDir, final
for (final Iterator<DocumentImpl> i = collection.iterator(context.getBroker()); i.hasNext(); ) {
final DocumentImpl doc = i.next();
try (final ManagedLock lock = context.getBroker().getBrokerPool()
.getLockManager().acquireDocumentReadLock(doc.getURI())) {
.getLockManager().acquireDocumentReadLock(doc.getURI())) {
if (startDate == null || doc.getMetadata().getLastModified() > startDate.getTime()) {
if (doc.getResourceType() == DocumentImpl.BINARY_FILE) {
saveBinary(targetDir, (BinaryDocument) doc, output);
Expand Down