- Timestamp:
- 2016-11-17T16:34:09+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2Construct.java
r30704 r31123 317 317 } 318 318 319 return runCommand(request, GS2PerlConstructor.MODIFY_METADATA_SERVER); 319 // wait until we can reserve the collection for processing 320 waitUntilReady(request); 321 322 // process 323 Element response = runCommand(request, GS2PerlConstructor.MODIFY_METADATA_SERVER); 324 325 // release hold on collection 326 signalReady(request); 327 return response; 320 328 } 321 329 … … 892 900 } 893 901 894 while ( collectionOperationMap.get(collection) != null)902 while (!checkCollectionIsNotBusy(collection)) // When the collection ceases to be busy, we place a hold on it 895 903 { 896 904 try … … 915 923 } 916 924 925 // If collection is NOT busy, then reserve it 917 926 protected synchronized boolean checkCollectionIsNotBusy(String collection) 918 927 {
Note:
See TracChangeset
for help on using the changeset viewer.