Mihai Glonț committed 782e9ca

Do not add a model that the user has submitted to their history.

That way, Hibernate does not throw a StaleStateException when
the oldest entries in the user's model history are removed from
multiple threads in a manner that is not thread-safe.

Comments (0)

Files changed (1)


             if (!result) {
                 return null
-            modelHistoryService.addModelToHistory(model)
+//            modelHistoryService.addModelToHistory(model)
             return Revision.get(result[0])