Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class IoTDBDataBackTool {

private static final IoTDBDescriptor ioTDBDescriptor = IoTDBDescriptor.getInstance();
static String sourcePath = System.getProperty(IoTDBConstant.IOTDB_HOME, null);
static boolean IS_OBJECT_STORAGE = false;
static boolean isObjectStorage = false;
static String DEFAULT_DN_DATA_DIRS =
"data"
+ File.separator
Expand Down Expand Up @@ -570,7 +570,7 @@ private static String isObjectStorage(String dnDataDirs) {
for (int c = 0; c < subPatternDirs.length; c++) {
if (c == subPatternDirs.length - 1 && i == patternDirs.length - 1) {
if (subPatternDirs[c].equals("OBJECT_STORAGE")) {
IS_OBJECT_STORAGE = true;
isObjectStorage = true;
} else {
tmpDnDataDirs.append(subPatternDirs[c]);
}
Expand All @@ -584,7 +584,7 @@ private static String isObjectStorage(String dnDataDirs) {
}
}
}
if (IS_OBJECT_STORAGE) {
if (isObjectStorage) {
return tmpDnDataDirs.toString().substring(0, tmpDnDataDirs.toString().length() - 1);
}
return tmpDnDataDirs.toString();
Expand Down