1. 16 Dec, 2004 1 commit
    • unknown's avatar
      A change of behaviour of Seconds_Behind_Master from SHOW SLAVE STATUS. It's going into 4.1 · b3d56a7d
      unknown authored
      because old behaviour was somewhat nonsensical (kind of bug). Changes are that if repl threads are
      down or disconnected the column will be NULL, and if master is idle the column will not grow indefinitely anymore.
      
      
      sql/slave.cc:
        mi->slave_running and rli->slave_running now uints (was needed only for mi but because of start_slave_thread() usage,
        had to change both).
        So mi->slave_running can now take 3 values: not running, running & not connected, running and connected.
        The last value serves for calculation of Seconds_Behind_Master in SHOW SLAVE STATUS.
        Changing this column's behaviour: if SQL or I/O thread is not running, or if I/O thread is not connected
        (for example if it is reconnecting), it's NULL (to mean "unknown"). And if master is idle, the column will
        not grow indefinitely like it used to (that was meaningless); this is fixed by forcing a value of 0
        when the slave SQL thread has hit EOF of relay log (which has only a limited number of caveats explained
        in comments in code).
      sql/slave.h:
        slave_running used to be bool but we need to distinguish, for the I/O slave thread, between 
        "running & connected" and "running & not connected" ("running" means the thread exists).
      sql/sql_repl.cc:
        we don't need anymore to set rli->last_master_timestamp to 0 (we used that to make Seconds_Behind_Master
        be NULL) in RESET SLAVE and CHANGE MASTER, as these commands imply that slave threads are not running
        and so Seconds_Behind_Master is already NULL because of that.
      b3d56a7d
  2. 13 Dec, 2004 20 commits
  3. 12 Dec, 2004 5 commits
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 6adb53ea
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-clean
      
      6adb53ea
    • unknown's avatar
      CommandInterpreter.cpp: · 580867c2
      unknown authored
        changed help text
      
      
      ndb/src/mgmclient/CommandInterpreter.cpp:
        changed help text
      580867c2
    • unknown's avatar
      fix bug#7193 · f8b6b3c6
      unknown authored
          added start backup parameter to enable setting wait state
          and set different timeouts depending on waitstate
          moved listen of backup event out of backup and into separete thread
          thread created at connect() and destroyed at disconnect()
          added start backup command options "nowait" "wait completed" "wait started"
          fixed log level settings
      
      
      ndb/include/mgmapi/mgmapi.h:
        added start backup parameter to enable setting wait state
      ndb/src/common/debugger/EventLogger.cpp:
        changed to unsigned printout
      ndb/src/mgmapi/mgmapi.cpp:
        added start backup parameter to enable setting wait state,
        and set different timeouts depending on waitstate
      ndb/src/mgmclient/CommandInterpreter.cpp:
        moved listen of backup event out of backup and into separete thread
        thread created at connect() and destroyed at disconnect()
        added start backup command options "nowait" "wait completed" "wait started"
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        added more options to start backup to set wait state
        + set timeout depending on wait state
        + some debug printouts
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        added more options to start backup to set wait state
      ndb/src/mgmsrv/Services.cpp:
        removed old backup code
        added use of stard backup otions
        fixed log level settings
      ndb/test/src/NdbBackup.cpp:
        adopted to new wait state option in start backup
      f8b6b3c6
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 670dfb2e
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-ref-4.1
      
      670dfb2e
    • unknown's avatar
      fixed optimized SOME subquery · a7964606
      unknown authored
      
      mysql-test/r/subselect.result:
        correct results of SOME subquery
      sql/item_cmpfunc.cc:
        some comments added
        fixed optimized SOME subquery
      a7964606
  4. 11 Dec, 2004 8 commits
  5. 10 Dec, 2004 6 commits