Selaa lähdekoodia

remove jdbcTemplate in ThreadLocal after fetching it

sunyj 7 vuotta sitten
vanhempi
commit
4057fbaebe
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/main/java/com/uas/ps/product/sync/WaitSyncHelper.java

+ 1 - 0
src/main/java/com/uas/ps/product/sync/WaitSyncHelper.java

@@ -85,6 +85,7 @@ public class WaitSyncHelper {
             batchSize = syncRepository.getBatchSize();
             syncRepository.unsetSessionVariable();
         } else {
+            jdbcTemplates.remove();
             batchSize = jdbcTemplate.execute(new CallableStatementCreator() {
                 @Override
                 public CallableStatement createCallableStatement(Connection connection) throws SQLException {