Skip to content

Commit f577395

Browse files
LPD-93387 SF
1 parent 987a0f0 commit f577395

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

modules/apps/change-tracking/change-tracking-service/src/main/java/com/liferay/change/tracking/service/impl/CTCollectionLocalServiceImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ public CTCollection deleteCTCollection(CTCollection ctCollection)
548548
ctCollection.getCtCollectionId());
549549

550550
Set<Serializable> ctEntryPrimaryKeys = new HashSet<>();
551-
552551
int entityCacheThreshold = _getEntityCacheThreshold();
553552

554553
try (SafeCloseable safeCloseable =
@@ -1380,10 +1379,9 @@ private void _discardCTEntries(
13801379
return null;
13811380
});
13821381

1383-
List<Long> modelClassPKs = new ArrayList<>(ctEntries.size());
13841382
Set<Serializable> ctEntryPrimaryKeys = new HashSet<>();
1385-
13861383
int entityCacheThreshold = _getEntityCacheThreshold();
1384+
List<Long> modelClassPKs = new ArrayList<>(ctEntries.size());
13871385

13881386
try (SafeCloseable safeCloseable =
13891387
SkipReplicationThreadLocal.setEnabledWithSafeCloseable(

modules/apps/change-tracking/change-tracking-test/src/testIntegration/java/com/liferay/change/tracking/internal/background/task/test/CTPublishBackgroundTaskExecutorTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ public void tearDown() throws Exception {
6868
}
6969

7070
@Test
71-
public void testExecuteDoesNotClearEntityCacheWhenNotClustered()
72-
throws Exception {
73-
71+
public void testExecute() throws Exception {
7472
Assert.assertFalse(ClusterExecutorUtil.isEnabled());
7573

7674
_addDLFileEntries(5);

0 commit comments

Comments
 (0)