Skip to content

Commit 1ca9901

Browse files
committed
[bugfix] prevent Exception when a non-dba user triggers defragmentation
1 parent c0c0112 commit 1ca9901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exist-core/src/main/java/org/exist/storage/NativeBroker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3172,7 +3172,7 @@ public Object start() {
31723172
}
31733173
}.run();
31743174
// create a copy of the old doc to copy the nodes into it
3175-
final DocumentImpl tempDoc = new DocumentImpl(null, pool, doc.getCollection(), doc.getDocId(), doc.getFileURI());
3175+
final DocumentImpl tempDoc = new DocumentImpl(null, doc.getDocId(), doc);
31763176
tempDoc.copyOf(this, doc, doc);
31773177
final StreamListener listener = getIndexController().getStreamListener(doc, ReindexMode.STORE);
31783178
// copy the nodes

0 commit comments

Comments
 (0)