fix(api): merge processFile() transactions with calling transactions (#287)
- swaps propagation mode to REQUIRED to merge transactions so that multiple transactions do not modify the same book at the same time and conflict
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ public abstract class AbstractFileProcessor implements BookFileProcessor {
|
||||
this.sidecarMetadataWriter = sidecarMetadataWriter;
|
||||
}
|
||||
|
||||
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
||||
@Transactional(propagation = Propagation.REQUIRED)
|
||||
@Override
|
||||
public FileProcessResult processFile(LibraryFile libraryFile) {
|
||||
Path path = libraryFile.getFullPath();
|
||||
|
||||
Reference in New Issue
Block a user