Project

General

Profile

« Previous | Next » 

Revision 1077

Added by Jing Tao almost 22 years ago

Add two controls to send or accept data.

View differences:

MetacatReplication.java
465 465
  private void handleForceReplicateDataFileRequest(Hashtable params)
466 466
  {
467 467
    //check if the metacat was configured to handle replication 
468
    if (!(util.getOption("replicationdata")).equals("on"))
468
    if (!(util.getOption("replicationacceptdata")).equals("on"))
469 469
    {
470 470
      return;
471 471
    }
......
671 671
                                 
672 672
  {
673 673
    //check the metacat was configured to handle data replication
674
    if (!(util.getOption("replicationdata")).equals("on"))
674
    if (!(util.getOption("replicationsenddata")).equals("on"))
675 675
    {
676 676
      return;
677 677
    }
......
843 843
      ResultSet rs = pstmt.getResultSet();
844 844
      boolean tablehasrows = rs.next();
845 845
      //If metacat configed to replicate data file
846
      if ((util.getOption("replicationdata")).equals("on"))
846
      if ((util.getOption("replicationsenddata")).equals("on"))
847 847
      {
848 848
        while(tablehasrows)
849 849
        {

Also available in: Unified diff