diff options
author | valerijf <valerijf@oath.com> | 2017-08-28 13:19:12 +0200 |
---|---|---|
committer | valerijf <valerijf@oath.com> | 2017-08-28 13:19:12 +0200 |
commit | dbb0155ecbe14457755ceec06faf6155e68fc359 (patch) | |
tree | de206d2686049a11397ce8ec456a9a7249103a2a /node-repository/src | |
parent | 24894bf4e3dcbc9af5ce55943976437d48947afc (diff) |
Make underlying method void as well
Diffstat (limited to 'node-repository/src')
-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; } /** |