Changeset 2173 for trunk/gsdl/src/colservr/collectserver.cpp
- Timestamp:
- 2001-03-14T04:15:23+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/collectserver.cpp
r1860 r2173 126 126 } 127 127 128 void collectserver::ping (bool &wasSuccess, comerror_t &error, ostream &logout) { 129 // if we've not been properly configured, then it is a foregone 130 // conclusion that we cannot be active 131 if (this->configinfo.collection == "null") 132 { 133 wasSuccess = false; 134 } 135 // if no build date exists, then the collection was probably not built; 136 // ditto if the number of documents is zero, then something is pretty 137 // wrong 138 else if (this->collectinfo.buildDate == 0 || 139 this->collectinfo.numDocs == 0) 140 { 141 wasSuccess = false; 142 } 143 // it is probably okay 144 else 145 wasSuccess = true; 146 } 147 128 148 129 149 bool collectserver::init (ostream &logout) {
Note:
See TracChangeset
for help on using the changeset viewer.