make DD.defsVersion volatile

patch by Jeffrey Wang; reviewed by jbellis for CASSANDRA-2490

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1094011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2011-04-16 16:13:34 +00:00
parent b553e77331
commit 2828cb4ecf
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class DatabaseDescriptor
private static RequestSchedulerOptions requestSchedulerOptions;
public static final UUID INITIAL_VERSION = new UUID(4096, 0); // has type nibble set to 1, everything else to zero.
private static UUID defsVersion = INITIAL_VERSION;
private static volatile UUID defsVersion = INITIAL_VERSION;
/**
* Inspect the classpath to find storage configuration file