replicator/lib/ruby/pg-wal-plugin.rb
# Turns the replicator offline, which stops replication. 
Turns the replicator offline, which stops replication.
Turns the replicator offline which stops replication .
def plugin_offline
    if tag_file_exist?(@online)
      if is_master()
        log("Stopping archiving on master")
      else
        dynamicConfig = getPgWalProperties()
        master_host = dynamicConfig.getProperty("postgresql.master.host")
        exec_cmd2("ssh #{master_host} rm -f #{@archiving_active_standby}", true)  
      end 
      tag_file_remove(@online)
      log("Node is now offline")
    else
      log("Node is already offline")
    end
  end
def plugin_offline if tag_file_exist? ( @online ) if is_master ( ) log ( "Stopping archiving on master" ) else dynamicConfig = getPgWalProperties ( ) master_host = dynamicConfig . getProperty ( "postgresql.master.host" ) exec_cmd2 ( "ssh #{master_host} rm -f #{@archiving_active_standby}" , true ) end tag_file_remove ( @online ) log ( "Node is now offline" ) else log ( "Node is already offline" ) end end
Turns the replicator offline, which stops replication.
Turns the replicator offline which stops replication .
# Make sure we are online.  # Stop sending WAL files from the master to this slave.