Skip to content
Permalink
Browse files
CURATOR-498
Missed a check on doProtected in checkSetSessionId()
  • Loading branch information
randgalt committed Jan 29, 2019
1 parent 5751526 commit e0b6c9bc53d3ebebe3c83dd06d63a0a99e70655c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -76,7 +76,7 @@ String protectedId()
*/
void checkSetSessionId(CuratorFrameworkImpl client, CreateMode createMode) throws Exception
{
if ( (sessionId == 0) && createMode.isEphemeral() )
if ( doProtected && (sessionId == 0) && createMode.isEphemeral() )
{
sessionId = client.getZooKeeper().getSessionId();
}

0 comments on commit e0b6c9b

Please sign in to comment.