Project

General

Profile

« Previous | Next » 

Revision 10449

Added by Jing Tao about 7 years ago

Synchornized the refresh method to make it thread safe.

View differences:

src/edu/ucsb/nceas/metacat/service/XMLSchemaService.java
123 123
	/**
124 124
	 * refresh the persistant values in this service.
125 125
	 */
126
	public void doRefresh() throws ServiceException {
126
	public synchronized void doRefresh() throws ServiceException {
127 127
	    logMetacat.debug("XMLService.doRefresh - refreshing the schema service.");
128 128
		try {
129 129
			populateRegisteredSchemaList();

Also available in: Unified diff