Project

General

Profile

« Previous | Next » 

Revision 7147

call MN.delete() for each replica when CN.delete() is called
https://redmine.dataone.org/issues/2676

View differences:

D1NodeService.java
209 209
      if (allowed) {
210 210
          try {
211 211
              // delete the document
212
        	  //  TODO: the method - or one like it - actually needs to remove content not just archive it
212 213
              DocumentImpl.delete(localId, username, groupnames, null);
213 214
              EventLog.getInstance().log(request.getRemoteAddr(), request.getHeader("User-Agent"), username, localId, Event.DELETE.xmlValue());
214 215

  
......
217 218
              sysMeta.setArchived(true);
218 219
              HazelcastService.getInstance().getSystemMetadataMap().put(pid, sysMeta);
219 220
              
220
              // remove the system metadata for it
221
              //HazelcastService.getInstance().getSystemMetadataMap().remove(pid);
222
              
223 221
          } catch (McdbDocNotFoundException e) {
224 222
              throw new NotFound("1340", "The provided identifier was invalid.");
225 223

  

Also available in: Unified diff