Skip to content

Commit

Permalink
Adding another explicit .merge(), to finalize any unflushed changes i…
Browse files Browse the repository at this point in the history
…n the dataset once it's locked, before the asynchronous part of the publishing process is initiated. (#2438)
  • Loading branch information
landreev committed Apr 26, 2018
1 parent a5de0ff commit b0e1b7a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public PublishDatasetResult execute(CommandContext ctxt) throws CommandException
lock.setInfo(info);
lock.setStartTime(new Date());
theDataset.getLocks().add(lock);
theDataset = ctxt.em().merge(theDataset);
return callFinalizeAsync(ctxt);
}
// Synchronous publishing (no workflow involved)
Expand Down

0 comments on commit b0e1b7a

Please sign in to comment.