Changeset 14632
- Timestamp:
- 2007-10-08T10:03:22+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/gsdl3/service/GS2MGRetrieve.java
r14431 r14632 45 45 private static final String DEFAULT_INDEX_LANGUAGE_ELEM = "defaultIndexLanguage"; 46 46 47 private MGRetrieveWrapper mg_src = null; 48 // private MGWrapper mg_src = null; 49 47 private static MGRetrieveWrapper mg_src = null; 50 48 private String mg_basedir = null; 51 49 private String mg_textdir = null; … … 54 52 55 53 public GS2MGRetrieve () { 56 this.mg_src = new MGRetrieveWrapper (); 54 if (this.mg_src == null){ 55 this.mg_src = new MGRetrieveWrapper (); 56 } 57 57 } 58 58 … … 119 119 } 120 120 Element content_node = this.doc.createElement (GSXML.NODE_CONTENT_ELEM); 121 122 121 123 122 String doc_content = null; 124 123 125 124 //means that this.mg_src is up and running 126 125 if (has_default_index ){ 127 doc_content = this.mg_src.getDocument (this.mg_basedir, 128 this.mg_textdir, doc_num); 126 synchronized(this.mg_src){ 127 String indexpath = GSFile.collectionIndexPath(this.index_stem, this.default_index); 128 doc_content = this.mg_src.getDocument (this.mg_basedir, 129 this.mg_textdir, doc_num); 130 } 129 131 } 130 132 … … 143 145 return content_node; 144 146 145 } 146 147 147 } 148 148 }
Note:
See TracChangeset
for help on using the changeset viewer.