=== modified file 'rules/schema/hbm_dmo_index.rules' --- rules/schema/hbm_dmo_index.rules 2020-04-13 11:17:30 +0000 +++ rules/schema/hbm_dmo_index.rules 2020-07-06 16:10:53 +0000 @@ -65,6 +65,8 @@ ** project. ** 014 CA 20191211 Add a '_timestamp' suffix to any datetimetz column part of an index. ** 015 CA 20200412 Added incremental conversion support. +** 016 CA 20200706 Fixed a leak for incremental conversion, runtime conversion must not restore +** or store the _temp schema from dmo_index.xml. --> === modified file 'src/com/goldencode/p2j/persist/meta/MetadataManager.java' --- src/com/goldencode/p2j/persist/meta/MetadataManager.java 2020-06-17 18:10:09 +0000 +++ src/com/goldencode/p2j/persist/meta/MetadataManager.java 2020-07-06 16:10:05 +0000 @@ -18,7 +18,8 @@ ** 010 IAS 20200518 Populating _File, _Field, _Index, and _Index-Field metadata tables. ** 011 IAS 20200604 Added support for *-SA and CAN-* fields in _File/_Field tables. ** 012 IAS 20200617 No fatal error if p2j.cfg.xml is not found; mandatory meta tables support - */ +** 013 CA 20200706 Flush the session before doing the commit, to release the DMOs from Hibernate. +*/ /* ** This program is free software: you can redistribute it and/or modify ** it under the terms of the GNU Affero General Public License as @@ -466,8 +467,9 @@ // populate the system table which have an explicit initializer SystemTable.populateAll(metaDb, p); + p.flushBatch(); p.commit(); - + // update database statistics p.executeSQL("analyze"); }