mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
yesterday 7cebc65e3c86e7b49c3bc6f782745c182f59acf3
opendj-server-legacy/src/main/java/org/opends/server/backends/jdbc/JDBCStorage.java
@@ -2842,6 +2842,15 @@
                  }
                  return null;
               });
               // Committed here, per tree, rather than left to the caller: the connection of an import
               // goes back to the pool as soon as this refresh is over, and CachedConnection.close()
               // rolls back before the pool hands it on - so a refresh left inside the transaction of
               // the borrow would be discarded by its own return, on the one engine where the database
               // does not commit it for us. On postgres the rows ANALYZE writes to pg_statistic are
               // ordinary catalog rows, and a rollback takes with them the histogram the "where k>?
               // order by k" batches of #859 need, leaving only the pg_class.reltuples it writes in
               // place; mysql (implicit commit), oracle (dbms_stats commits) and sql server commit the
               // statement themselves, which is why no container suite pins this (issue #1012).
               con.commit();
            }
         }catch (Exception e) {