Project

General

Profile

« Previous | Next » 

Revision 1032

Added by Jing Tao over 22 years ago

Add two controls for handle replication server list is empty and updated document list is empty

View differences:

src/edu/ucsb/nceas/metacat/ReplicationHandler.java
108 108
        }
109 109
      }
110 110
      serverList = buildServerList(conn);
111
      //if serverList is null, metacat don't need to replication
112
      if (serverList==null||serverList.isEmpty())
113
      {
114
        return;
115
      }
111 116
      updateCatalog(serverList);
112 117
      update(serverList);
113 118
      conn.close();
......
201 206
        responses.add(result);
202 207
      }
203 208
      
209
      //make sure that there is updated file list
210
      //If response is null, mecat don't need do anything
211
       if (responses==null||responses.isEmpty())
212
      {
213
        return;
214
      }
215
      
204 216
      //String srvr = util.getOption("servletpath");
205 217
      
206 218
      //System.out.println("responses (from srvr): " + responses.toString());

Also available in: Unified diff