Skip to content
Snippets Groups Projects
Commit ac15f08d authored by juanf's avatar juanf
Browse files

SSDM-2091 : Do not shuffle recently deleted data sets, polished implementation

SVN: 34439
parent 0d4c8828
No related branches found
No related tags found
No related merge requests found
...@@ -1050,12 +1050,7 @@ public class ServiceForDataStoreServer extends AbstractCommonServer<IServiceForD ...@@ -1050,12 +1050,7 @@ public class ServiceForDataStoreServer extends AbstractCommonServer<IServiceForD
if (dataSet == null) if (dataSet == null)
{ {
//Check if the dataset is on the trashcan //Check if the dataset is on the trashcan
TechId dataSetTechId = getDAOFactory().getDataDAO().tryToFindDataSetIdByCode(dataSetCode); boolean isDataSetOnTrashCan = getDAOFactory().getDataDAO().exists(dataSetCode);
List<String> queryDatasetOnTrashCan = null;
if(dataSetTechId != null) {
queryDatasetOnTrashCan = getDAOFactory().getDeletionDAO().findTrashedDataSetCodes(Arrays.asList(dataSetTechId));
}
boolean isDataSetOnTrashCan = queryDatasetOnTrashCan != null && queryDatasetOnTrashCan.size() == 1;
//Check if the dataset is finally deleted //Check if the dataset is finally deleted
boolean isDataSetDeleted = getDAOFactory().getEventDAO().tryFind( boolean isDataSetDeleted = getDAOFactory().getEventDAO().tryFind(
dataSetCode, dataSetCode,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment