lib/command/server/debug.js
function reload(req, res) {
  var log = this.log;
  if(Persistence.loading) {
    return res.send(new Error('database load in progress'));
  }
  Persistence.load(this.state.store, this.state.conf,
    function onLoad(err, time, diff, version) {
      if(err) return log.warning('db reload error: %s', err.message);
      log.notice(
        'db reloaded by DEBUG RELOAD: %s seconds (v%s)', time, version);
    }
  );
  res.send(null, Constants.OK);
}
function reload(req, res) {
  var log = this.log;
  if(Persistence.loading) {
    return res.send(new Error('database load in progress'));
  }
  Persistence.load(this.state.store, this.state.conf,
    function onLoad(err, time, diff, version) {
      if(err) return log.warning('db reload error: %s', err.message);
      log.notice(
        'db reloaded by DEBUG RELOAD: %s seconds (v%s)', time, version);
    }
  );
  res.send(null, Constants.OK);
}
function reload ( req , res ) { var log = this . log ; if ( Persistence . loading ) { return res . send ( new Error ( 'database load in progress' ) ) ; } Persistence . load ( this . state . store , this . state . conf , function onLoad ( err , time , diff , version ) { if ( err ) return log . warning ( 'db reload error: %s' , err . message ) ; log . notice ( 'db reloaded by DEBUG RELOAD: %s seconds (v%s)' , time , version ) ; } ) ; res . send ( null , Constants . OK ) ; }
Respond to the RELOAD subcommand.
Respond to the RELOAD subcommand .