Project

General

Profile

« Previous | Next » 

Revision 2578

Added by Jing Tao over 19 years ago

Add code to trim server name white space.

View differences:

src/edu/ucsb/nceas/metacat/ReplicationHandler.java
156 156
        // Get ReplicationServer object from server list
157 157
        replServer = serverList.serverAt(i);
158 158
        // Get server name from ReplicationServer object
159
        server = replServer.getServerName();
159
        server = replServer.getServerName().trim();
160 160
        String result = null;
161 161
        MetacatReplication.replLog("full update started to: " + server);
162 162
        // Send command to that server to get updated docid information
......
253 253
          // Get remote server name (it is may not be doc homeserver because
254 254
          // the new hub feature
255 255
          String remoteServer = (String)w.elementAt(2);
256
          remoteServer = remoteServer.trim();
256 257

  
257 258

  
258 259
          // compare the update rev and local rev to see what need happen

Also available in: Unified diff