Mercurial > hg > Database > CassandraEclipse
changeset 1:fab1356271f6 default tip
add 1 function call "loadSchemaFromYAML"
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 08 May 2010 15:00:17 +0900 |
parents | 5245329754b7 |
children | |
files | src/java/org/apache/cassandra/thrift/CassandraDaemon.java |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java/org/apache/cassandra/thrift/CassandraDaemon.java Sat May 08 04:24:25 2010 +0900 +++ b/src/java/org/apache/cassandra/thrift/CassandraDaemon.java Sat May 08 15:00:17 2010 +0900 @@ -85,17 +85,22 @@ try { DatabaseDescriptor.loadSchemas(); + StorageService.instance.loadSchemaFromYAML(); } catch (IOException e) { logger.error("Fatal exception during initialization", e); System.exit(100); - } + } catch (ConfigurationException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } // initialize keyspaces for (String table : DatabaseDescriptor.getTables()) { - if (logger.isDebugEnabled()) + + if (logger.isDebugEnabled()) logger.debug("opening keyspace " + table); Table.open(table); }