Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 15738d6

Browse files
committed
Fixing typo with logging whether custom forests exist or not
1 parent 77c9ee5 commit 15738d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/marklogic/appdeployer/command/databases/DeployDatabaseCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,11 @@ protected boolean shouldCreateForests(CommandContext context, String payload) {
253253
if (isCheckForCustomForests()) {
254254
PayloadParser parser = new PayloadParser();
255255
String dbName = parser.getPayloadFieldValue(payload, "database-name");
256-
boolean exist = !customForestsExist(context, dbName);
257-
if (exist && logger.isInfoEnabled()) {
256+
boolean customForestsDontExist = !customForestsExist(context, dbName);
257+
if (!customForestsDontExist && logger.isInfoEnabled()) {
258258
logger.info("Found custom forests for database " + dbName + ", so not creating default forests");
259259
}
260-
return exist;
260+
return customForestsDontExist;
261261
}
262262
return true;
263263
}

0 commit comments

Comments
 (0)