Revision 6648
Added by ben leinfelder over 12 years ago
MNodeService.java | ||
---|---|---|
98 | 98 |
import edu.ucsb.nceas.metacat.client.InsufficientKarmaException; |
99 | 99 |
import edu.ucsb.nceas.metacat.database.DBConnection; |
100 | 100 |
import edu.ucsb.nceas.metacat.database.DBConnectionPool; |
101 |
import edu.ucsb.nceas.metacat.dataone.hazelcast.HazelcastService; |
|
101 | 102 |
import edu.ucsb.nceas.metacat.properties.PropertyService; |
102 | 103 |
import edu.ucsb.nceas.metacat.util.SystemUtil; |
103 | 104 |
import edu.ucsb.nceas.utilities.PropertyNotFoundException; |
... | ... | |
216 | 217 |
DocumentImpl.delete(localId, username, groupnames, null); |
217 | 218 |
EventLog.getInstance().log(request.getRemoteAddr(), request.getHeader("User-Agent"), username, localId, Event.DELETE.xmlValue()); |
218 | 219 |
|
220 |
// remove the system metadata for it |
|
221 |
HazelcastService.getInstance().getSystemMetadataMap().remove(pid); |
|
222 |
|
|
219 | 223 |
} catch (McdbDocNotFoundException e) { |
220 | 224 |
throw new NotFound("1340", "The provided identifier was invalid."); |
221 | 225 |
|
Also available in: Unified diff
delete system metadata when MN.delete() is called.