info.acquireMutex();
try {
info.makeResident();
- return info.getCSSIds();
+ return info.getCCSIds();
} finally {
info.releaseMutex();
}
// Cluster files are always there
// Nothing has been written => no need to do anything
long amountOfFiles = countFiles(workingDirectory);
- if(!fullSave && amountOfFiles < 3) {
+ if(!fullSave && amountOfFiles == 0) {
// System.err.println("amountOfFiles < 3");
return false;
}
if (!safeToMakeSnapshot.get())
throw cause;
+ ClusterSetsSupport cssi = locator.getService(ClusterSetsSupport.class);
+ cssi.save();
+
persistHeadState();
-
+
if (fullSave)
mainState.save(dbFolder);
- ClusterSetsSupport cssi = locator.getService(ClusterSetsSupport.class);
- cssi.save();
-
amountOfFiles = countFiles(workingDirectory);
System.err.println(" -finished: amount of files is " + amountOfFiles);