Fix for defect #4057 : restore -d xxx/schema wipes out completely the schema and render the server unusable.
| | |
| | | String baseDirPath ; |
| | | if (fileName.endsWith(".install")) |
| | | { |
| | | fileName = fileName.substring(fileName.lastIndexOf(".install")); |
| | | fileName = fileName.substring(0,fileName.lastIndexOf(".install")); |
| | | baseDirPath = schemaInstallDirPath; |
| | | } |
| | | else |
| | | { |
| | | fileName = fileName.substring(fileName.lastIndexOf(".instance")); |
| | | fileName = fileName.substring(0,fileName.lastIndexOf(".instance")); |
| | | baseDirPath = schemaInstanceDirPath; |
| | | } |
| | | |