Skip to content

Commit

Permalink
backup table status only
Browse files Browse the repository at this point in the history
  • Loading branch information
jackylk committed Dec 16, 2019
1 parent 544034e commit bcc7f30
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,8 @@ public static void writeLoadDetailsIntoFile(
// will be in corrupted state. This can happen in an unstable environment,
// like in the cloud. To prevent the table corruption, user can enable following
// property to enable backup of the table status before overwriting it.
if (CarbonProperties.isEnableTableStatusBackup()) {
if (tableStatusPath.endsWith(CarbonTablePath.TABLE_STATUS_FILE) &&
CarbonProperties.isEnableTableStatusBackup()) {
backupTableStatus(tableStatusPath);
}
String content = new Gson().toJson(listOfLoadFolderDetailsArray);
Expand Down

0 comments on commit bcc7f30

Please sign in to comment.