1. 04 Jul, 2017 1 commit
  2. 03 Jul, 2017 2 commits
  3. 02 Jul, 2017 2 commits
    • Olivier Bertrand's avatar
      Define nullptr in jdbconn.cpp · 0631cdab
      Olivier Bertrand authored
      0631cdab
    • Olivier Bertrand's avatar
      - Add Support of the MongoDB Java Driver. · 94e5d7de
      Olivier Bertrand authored
        modified:   storage/connect/CMakeLists.txt
        modified:   storage/connect/JavaWrappers.jar
        modified:   storage/connect/colblk.h
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/filter.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/ha_connect.h
        modified:   storage/connect/jdbccat.h
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/jdbconn.h
        modified:   storage/connect/mongofam.cpp
        modified:   storage/connect/mongofam.h
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/mycat.h
        modified:   storage/connect/tabext.h
        modified:   storage/connect/tabjdbc.cpp
        modified:   storage/connect/tabjdbc.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/tabmgo.cpp
        modified:   storage/connect/tabmgo.h
        created:    storage/connect/Mongo2Interface.java
        created:    storage/connect/Mongo3Interface.java
        created:    storage/connect/cmgoconn.cpp
        created:    storage/connect/cmgoconn.h
        created:    storage/connect/javaconn.cpp
        created:    storage/connect/javaconn.h
        created:    storage/connect/jmgfam.cpp
        created:    storage/connect/jmgfam.h
        created:    storage/connect/jmgoconn.cpp
        created:    storage/connect/jmgoconn.h
        created:    storage/connect/mongo.cpp
        created:    storage/connect/mongo.h
        created:    storage/connect/tabjmg.cpp
        created:    storage/connect/tabjmg.h
      
      - tdbp not initialized when catched exception
      in CntGetTDB (connect.cc line 188)
        modified:   storage/connect/connect.h
      
      - CheckCleanup should sometimes doing cleanup on pure info
      Sometimes MariaDB loops on info to get the size of all tables in a database.
      This can sometimes fail by exhausted memory.
      CheckCleanup now have a force boolean parameter (defaulting to false)
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/user_connect.cc
        modified:   storage/connect/user_connect.h
      
      Change the copyright of some source files
        modified:   storage/connect/connect.cc
        modified:   storage/connect/connect.h
        modified:   storage/connect/engmsg.h
        modified:   storage/connect/global.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/ha_connect.h
        modified:   storage/connect/msgid.h
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/mycat.h
        modified:   storage/connect/os.h
        modified:   storage/connect/osutil.c
        modified:   storage/connect/osutil.h
        modified:   storage/connect/user_connect.cc
        modified:   storage/connect/user_connect.h
      94e5d7de
  4. 11 Jun, 2017 1 commit
    • Olivier Bertrand's avatar
      Fix unhandled exception: · c51548d6
      Olivier Bertrand authored
      Force type int for ENUMs.
      Replace remaining longjmp.
        modified:   storage/connect/array.cpp
        modified:   storage/connect/colblk.cpp
        modified:   storage/connect/connect.cc
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabvir.cpp
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/value.cpp
        modified:   storage/connect/xobject.cpp
      c51548d6
  5. 09 Jun, 2017 1 commit
  6. 08 Jun, 2017 1 commit
  7. 06 Jun, 2017 1 commit
  8. 03 Jun, 2017 1 commit
  9. 01 Jun, 2017 1 commit
  10. 29 May, 2017 1 commit
    • Olivier Bertrand's avatar
      Add table option FILTER used by Mongo and Json tables. · de1a9b17
      Olivier Bertrand authored
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mongofam.cpp
        modified:   storage/connect/mycat.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/tabmgo.cpp
        modified:   storage/connect/tabmgo.h
      
      Fix a regression bug in MongoFam
      (all = true only when no Options)
        modified:   storage/connect/mongofam.cpp
      
      Fix a regression bug in JsonCol
      (in JSONCOL::GetJpath)
        modified:   storage/connect/tabjson.cpp
      de1a9b17
  11. 28 May, 2017 1 commit
  12. 26 May, 2017 3 commits
  13. 25 May, 2017 2 commits
    • Olivier Bertrand's avatar
      Try to fix failing tests · e58620cd
      Olivier Bertrand authored
        modified:   storage/connect/mysql-test/connect/r/alter_xml2.result
        modified:   storage/connect/mysql-test/connect/r/infoschema2-9739.result
        modified:   storage/connect/mysql-test/connect/r/xml2_mdev5261.result
      e58620cd
    • Olivier Bertrand's avatar
      Recognize xmlsup option case insensitive · 7f02ab70
      Olivier Bertrand authored
        modified:   storage/connect/ha_connect.cc
      
      Update tests to reflect recent changes, in particular new Jpath syntax
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mysql-test/connect/r/alter_xml.result
        modified:   storage/connect/mysql-test/connect/r/bin.result
        modified:   storage/connect/mysql-test/connect/r/dir.result
        modified:   storage/connect/mysql-test/connect/r/grant.result
        modified:   storage/connect/mysql-test/connect/r/grant2.result
        modified:   storage/connect/mysql-test/connect/r/infoschema-9739.result
        modified:   storage/connect/mysql-test/connect/r/ini_grant.result
        modified:   storage/connect/mysql-test/connect/r/jdbc_new.result
        modified:   storage/connect/mysql-test/connect/r/mysql_discovery.result
        modified:   storage/connect/mysql-test/connect/r/mysql_exec.result
        modified:   storage/connect/mysql-test/connect/r/mysql_grant.result
        modified:   storage/connect/mysql-test/connect/r/mysql_new.result
        modified:   storage/connect/mysql-test/connect/r/unsigned.result
        modified:   storage/connect/mysql-test/connect/r/upd.result
        modified:   storage/connect/mysql-test/connect/r/xml.result
        modified:   storage/connect/mysql-test/connect/r/xml_grant.result
        modified:   storage/connect/mysql-test/connect/r/xml_html.result
        modified:   storage/connect/mysql-test/connect/r/xml_mdev5261.result
        modified:   storage/connect/mysql-test/connect/r/xml_mult.result
        modified:   storage/connect/mysql-test/connect/r/xml_zip.result
        modified:   storage/connect/mysql-test/connect/t/alter_xml.test
        modified:   storage/connect/mysql-test/connect/t/dir.test
        modified:   storage/connect/mysql-test/connect/t/infoschema-9739.test
        modified:   storage/connect/mysql-test/connect/t/jdbc_new.test
        modified:   storage/connect/mysql-test/connect/t/mysql_exec.test
        modified:   storage/connect/mysql-test/connect/t/mysql_new.test
        modified:   storage/connect/mysql-test/connect/t/unsigned.test
        modified:   storage/connect/mysql-test/connect/t/upd.test
        modified:   storage/connect/mysql-test/connect/t/xml.test
        modified:   storage/connect/mysql-test/connect/t/xml_grant.test
        modified:   storage/connect/mysql-test/connect/t/xml_html.test
        modified:   storage/connect/mysql-test/connect/t/xml_mdev5261.test
        modified:   storage/connect/mysql-test/connect/t/xml_mult.test
        modified:   storage/connect/mysql-test/connect/t/xml_zip.test
      7f02ab70
  14. 23 May, 2017 2 commits
    • Olivier Bertrand's avatar
      Fix bug: Discovery of JSON table fails in DEBUG mode · 46cf1a0d
      Olivier Bertrand authored
      when NO MONGO support. (tdb->Uri is uninitialized)
        modified:   storage/connect/tabjson.cpp
      46cf1a0d
    • Olivier Bertrand's avatar
      Fix gcc compiler warnings reported by Sergei · 3e36eb23
      Olivier Bertrand authored
        modified:   storage/connect/array.cpp
        modified:   storage/connect/array.h
        modified:   storage/connect/blkfil.cpp
        modified:   storage/connect/blkfil.h
        modified:   storage/connect/block.h
        modified:   storage/connect/colblk.cpp
        modified:   storage/connect/colblk.h
        modified:   storage/connect/csort.h
        modified:   storage/connect/filamvct.cpp
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/filter.h
        modified:   storage/connect/global.h
        modified:   storage/connect/json.h
        modified:   storage/connect/plgdbsem.h
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/tabcol.cpp
        modified:   storage/connect/tabcol.h
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabdos.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/table.cpp
        modified:   storage/connect/tabodbc.cpp
        modified:   storage/connect/tabodbc.h
        modified:   storage/connect/tabsys.h
        modified:   storage/connect/tabxml.h
        modified:   storage/connect/value.cpp
        modified:   storage/connect/value.h
        modified:   storage/connect/xindex.cpp
        modified:   storage/connect/xindex.h
        modified:   storage/connect/xobject.cpp
        modified:   storage/connect/xobject.h
        modified:   storage/connect/xtable.h
      
      Set values as nullable when retrieving catalog info
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/mysql-test/connect/r/odbc_oracle.result
        modified:   storage/connect/odbconn.cpp
      
      Change format of Jpath
        modified:   storage/connect/json.cpp
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/mysql-test/connect/r/json.result
        modified:   storage/connect/mysql-test/connect/r/json_udf.result
        modified:   storage/connect/mysql-test/connect/r/json_udf_bin.result
        modified:   storage/connect/mysql-test/connect/r/zip.result
        modified:   storage/connect/mysql-test/connect/t/json.test
        modified:   storage/connect/mysql-test/connect/t/json_udf.test
        modified:   storage/connect/mysql-test/connect/t/json_udf_bin.test
        modified:   storage/connect/mysql-test/connect/t/zip.test
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/tabmgo.cpp
      
      Change null representation from ??? to <null>
        modified:   storage/connect/json.cpp
      
      Change the name of UDF that are equal to a native JSON function name
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/jsonudf.h
        modified:   storage/connect/mysql-test/connect/t/json_udf.inc
        modified:   storage/connect/mysql-test/connect/t/json_udf2.inc
      
      Fix bug in making JSON project info
        modified:   storage/connect/mongofam.cpp
      
      Fix COMPUTE when one argument is null
        modified:   storage/connect/value.cpp
      
      Value is null only when nullable
        modified:   storage/connect/value.h
      3e36eb23
  15. 18 May, 2017 1 commit
  16. 17 May, 2017 1 commit
  17. 16 May, 2017 1 commit
  18. 14 May, 2017 1 commit
  19. 12 May, 2017 4 commits
    • Marko Mäkelä's avatar
      MDEV-12674 Post-merge fix: Include accidentally omitted changes · f9069a3d
      Marko Mäkelä authored
      In 10.2, the definition of simple_counter resides in the file
      sync0types.h, not in the file os0sync.h which has been removed.
      f9069a3d
    • Marko Mäkelä's avatar
      Merge 10.1 into 10.2 · b9474b5d
      Marko Mäkelä authored
      b9474b5d
    • Marko Mäkelä's avatar
      Merge 10.0 into 10.1 · 03dca7a3
      Marko Mäkelä authored
      03dca7a3
    • Marko Mäkelä's avatar
      MDEV-12674 Innodb_row_lock_current_waits has overflow · ff166093
      Marko Mäkelä authored
      There is a race condition related to the variable
      srv_stats.n_lock_wait_current_count, which is only
      incremented and decremented by the function lock_wait_suspend_thread(),
      
      The incrementing is protected by lock_sys->wait_mutex, but the
      decrementing does not appear to be protected by anything.
      This mismatch could allow the counter to be corrupted when a
      transactional InnoDB table or record lock wait is terminating
      roughly at the same time with the start of a wait on a
      (possibly different) lock.
      
      ib_counter_t: Remove some unused methods. Prevent instantiation for N=1.
      Add an inc() method that takes a slot index as a parameter.
      
      single_indexer_t: Remove.
      
      simple_counter<typename Type, bool atomic=false>: A new counter wrapper.
      Optionally use atomic memory operations for modifying the counter.
      Aligned to the cache line size.
      
      lsn_ctr_1_t, ulint_ctr_1_t, int64_ctr_1_t: Define as simple_counter<Type>.
      These counters are either only incremented (and we do not care about
      losing some increment operations), or the increment/decrement operations
      are protected by some mutex.
      
      srv_stats_t::os_log_pending_writes: Document that the number is protected
      by log_sys->mutex.
      
      srv_stats_t::n_lock_wait_current_count: Use simple_counter<ulint, true>,
      that is, atomic inc() and dec() operations.
      
      lock_wait_suspend_thread(): Release the mutexes before incrementing
      the counters. Avoid acquiring the lock mutex if the lock wait has
      already been resolved. Atomically increment and decrement
      srv_stats.n_lock_wait_current_count.
      
      row_insert_for_mysql(), row_update_for_mysql(),
      row_update_cascade_for_mysql(): Use the inc() method with the trx->id
      as the slot index. This is a non-functional change, just using
      inc() instead of add(1).
      
      buf_LRU_get_free_block(): Replace the method add(index, n) with inc().
      There is no slot index in the simple_counter.
      ff166093
  20. 11 May, 2017 2 commits
    • Michael Widenius's avatar
      MDEV-10804 main.stat_tables_par fails sporadically in buildbot · 99332399
      Michael Widenius authored
      This was because of two issues:
      - thr_multi_lock_after_thr_lock needed to be hit 3 times before go2 could
        be signaled, because 2 of these happened before statistics_update_start
        was reached.
      - The original code didn't take into accunt that thr_locks can be executed in
        any random order, which caused sporadic failures when waiting for 1 lock
        of 3, as if the locks where in different order, there would be a dead-lock.
        Fixed by introducing thr_multi_lock_before_thr_lock which is deterministic.
      - Some of the test failures where not noticed as the DEBUG_SYNC timeout
        would cause the test to pass (after 300 seconds).
      99332399
    • Michael Widenius's avatar
  21. 10 May, 2017 10 commits