change synchronized mode
@@ -80,7 +80,8 @@ public class LevelDBManager {
return BASE_AREA_NAME;
}
- public static synchronized void init() throws Exception {
+ public static void init() throws Exception {
+ synchronized(LevelDBManager.class) {
if (!isInit) {
isInit = true;
File dir = loadDataPath();
@@ -113,6 +114,7 @@ public class LevelDBManager {
}
}
}
+ }
private static void initSchema() {
RuntimeSchema schema = RuntimeSchema.createFrom(ModelWrapper.class);
