Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2FEC795C3 for ; Tue, 24 Jul 2012 00:46:35 +0000 (UTC) Received: (qmail 66176 invoked by uid 500); 24 Jul 2012 00:46:35 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 66153 invoked by uid 500); 24 Jul 2012 00:46:35 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 66143 invoked by uid 99); 24 Jul 2012 00:46:34 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2012 00:46:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 9FE2B142823 for ; Tue, 24 Jul 2012 00:46:34 +0000 (UTC) Date: Tue, 24 Jul 2012 00:46:34 +0000 (UTC) From: "Dave Brosius (JIRA)" To: commits@cassandra.apache.org Message-ID: <711898498.93670.1343090794656.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (CASSANDRA-4460) SystemTable.setBootstrapState always sets bootstrap state to true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dave Brosius created CASSANDRA-4460: --------------------------------------- Summary: SystemTable.setBootstrapState always sets bootstrap state to true Key: CASSANDRA-4460 URL: https://issues.apache.org/jira/browse/CASSANDRA-4460 Project: Cassandra Issue Type: Bug Components: Core Affects Versions: 1.2 Reporter: Dave Brosius Priority: Trivial public static void setBootstrapState(BootstrapState state) { String req = "INSERT INTO system.%s (key, bootstrapped) VALUES ('%s', '%b')"; processInternal(String.format(req, LOCAL_CF, LOCAL_KEY, getBootstrapState())); forceBlockingFlush(LOCAL_CF); } Third parameter %b is set from getBootstrapState() which returns an enum, thus %b collapses to null/non null checks. This would seem then to always set it to true. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira