|
1
|
=== modified file 'rules/schema/hbm_dmo_index.rules'
|
|
2
|
--- rules/schema/hbm_dmo_index.rules 2020-04-13 11:17:30 +0000
|
|
3
|
+++ rules/schema/hbm_dmo_index.rules 2020-07-06 16:10:53 +0000
|
|
4
|
@@ -65,6 +65,8 @@
|
|
5
|
** project.
|
|
6
|
** 014 CA 20191211 Add a '_timestamp' suffix to any datetimetz column part of an index.
|
|
7
|
** 015 CA 20200412 Added incremental conversion support.
|
|
8
|
+** 016 CA 20200706 Fixed a leak for incremental conversion, runtime conversion must not restore
|
|
9
|
+** or store the _temp schema from dmo_index.xml.
|
|
10
|
-->
|
|
11
|
<!--
|
|
12
|
** This program is free software: you can redistribute it and/or modify
|
|
13
|
@@ -246,7 +248,7 @@
|
|
14
|
indexElem = indexRoot.getImmediateChild(xml.element_node, null)
|
|
15
|
</action>
|
|
16
|
|
|
17
|
- <rule on="false">text == "_temp"
|
|
18
|
+ <rule on="false">text == "_temp" and !isRuntimeConfig()
|
|
19
|
<!-- try to find the child "schema" element node whose name is
|
|
20
|
"_temp"; it will be the last element node child of
|
|
21
|
indexElem, if it exists at all -->
|
|
22
|
|
|
23
|
=== modified file 'src/com/goldencode/p2j/persist/meta/MetadataManager.java'
|
|
24
|
--- src/com/goldencode/p2j/persist/meta/MetadataManager.java 2020-06-17 18:10:09 +0000
|
|
25
|
+++ src/com/goldencode/p2j/persist/meta/MetadataManager.java 2020-07-06 16:10:05 +0000
|
|
26
|
@@ -18,7 +18,8 @@
|
|
27
|
** 010 IAS 20200518 Populating _File, _Field, _Index, and _Index-Field metadata tables.
|
|
28
|
** 011 IAS 20200604 Added support for *-SA and CAN-* fields in _File/_Field tables.
|
|
29
|
** 012 IAS 20200617 No fatal error if p2j.cfg.xml is not found; mandatory meta tables support
|
|
30
|
- */
|
|
31
|
+** 013 CA 20200706 Flush the session before doing the commit, to release the DMOs from Hibernate.
|
|
32
|
+*/
|
|
33
|
/*
|
|
34
|
** This program is free software: you can redistribute it and/or modify
|
|
35
|
** it under the terms of the GNU Affero General Public License as
|
|
36
|
@@ -466,8 +467,9 @@
|
|
37
|
// populate the system table which have an explicit initializer
|
|
38
|
SystemTable.populateAll(metaDb, p);
|
|
39
|
|
|
40
|
+ p.flushBatch();
|
|
41
|
p.commit();
|
|
42
|
-
|
|
43
|
+
|
|
44
|
// update database statistics
|
|
45
|
p.executeSQL("analyze");
|
|
46
|
}
|
|
47
|
|