mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
Flush database changes after switching to READONLY mode
This commit is contained in:
@@ -202,10 +202,6 @@ public class IndexEventConsumer implements Consumer {
|
||||
public void end(Context ctx) throws Exception {
|
||||
|
||||
// Change the mode to readonly to improve performance
|
||||
// First, we flush the changes to database, if session is dirty, has pending changes
|
||||
// to synchronize with database, without this flush it could index an old version of
|
||||
// the object
|
||||
ctx.flushDBChanges();
|
||||
Context.Mode originalMode = ctx.getCurrentMode();
|
||||
ctx.setMode(Context.Mode.READ_ONLY);
|
||||
|
||||
|
Reference in New Issue
Block a user