diff options
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CuratorDatabaseClient.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CuratorDatabaseClient.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CuratorDatabaseClient.java index cd63599fed6..651ee44415f 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CuratorDatabaseClient.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CuratorDatabaseClient.java @@ -108,16 +108,14 @@ public class CuratorDatabaseClient { * * @param state the current state of the node * @param hostName the host name of the node to remove - * @return true if the node was removed, false if it was not found */ - public boolean removeNode(Node.State state, String hostName) { + public void removeNode(Node.State state, String hostName) { Path path = toPath(state, hostName); NestedTransaction transaction = new NestedTransaction(); CuratorTransaction curatorTransaction = curatorDatabase.newCuratorTransactionIn(transaction); curatorTransaction.add(CuratorOperations.delete(path.getAbsolute())); transaction.commit(); log.log(LogLevel.INFO, "Removed: " + state + " node " + hostName); - return true; } /** |