Revision 1027
Added by Jing Tao over 22 years ago
src/edu/ucsb/nceas/metacat/ForceReplicationHandler.java | ||
---|---|---|
120 | 120 |
action); |
121 | 121 |
} |
122 | 122 |
//It is data file and configured to handle data replication |
123 |
else if ((util.getOption("replication")).equals("on")) |
|
123 |
else if ((util.getOption("replicationdata")).equals("on"))
|
|
124 | 124 |
{ |
125 | 125 |
MetacatReplication.replLog("force data replicating to " + server); |
126 | 126 |
comeAndGetIt = new URL("https://" + server + |
... | ... | |
146 | 146 |
"&docid=" + docid); |
147 | 147 |
} |
148 | 148 |
//It is datafile and metacat is configured to handle data file |
149 |
else if ((util.getOption("replication")).equals("on")) |
|
149 |
else if ((util.getOption("replicationdata")).equals("on"))
|
|
150 | 150 |
{ |
151 | 151 |
comeAndGetIt = new URL("https://" + server + |
152 | 152 |
"?action=forcereplicatedatafile&server=" + |
Also available in: Unified diff
Adding a control which can turn on or off replcation data file.