Project

General

Profile

« Previous | Next » 

Revision 7221

put(sm) for every pid we have a SM value for so that all members receive the entry event and can save locally.

View differences:

src/edu/ucsb/nceas/metacat/dataone/hazelcast/HazelcastService.java
560 560
				if (true) {
561 561
					// get directly from backing store
562 562
					sm = IdentifierManager.getInstance().getSystemMetadata(pid.getValue());
563
					if (sm != null)  {
564
						logMetacat.debug("saving local SystemMetadata to shared map for pid: " + pid.getValue());
565
						systemMetadata.put(pid, sm);
566
					} else {
567
						logMetacat.error("local SystemMetadata is null for pid: " + pid.getValue());
568
					}
563
					
569 564
				}
570 565
			}
566
			// check again, but hopefully we can add it to the map now (again) so that it is propgated to all listening members
567
			if (sm != null)  {
568
				logMetacat.debug("saving local SystemMetadata to shared map for pid: " + pid.getValue());
569
				systemMetadata.put(pid, sm);
570
			} else {
571
				logMetacat.error("local SystemMetadata is null for pid: " + pid.getValue());
572
			}
571 573
		}
572 574
		
573 575
	}

Also available in: Unified diff