transactd 3.4.1-x86-mswin32-100 → 3.5.0-x86-mswin32-100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/CMakeLists.txt +2 -2
 - data/bin/2.0/transactd.so +0 -0
 - data/bin/2.1/transactd.so +0 -0
 - data/bin/2.2/transactd.so +0 -0
 - data/bin/2.3/transactd.so +0 -0
 - data/bin/common/tdclc_32_3_5.dll +0 -0
 - data/bin/common/tdclcpp_vc100_32mr_3_5.dll +0 -0
 - data/source/bzs/test/tdclrb/transactd_v3_spec.rb +69 -2
 - metadata +4 -4
 - data/bin/common/tdclc_32_3_4.dll +0 -0
 - data/bin/common/tdclcpp_vc100_32mr_3_4.dll +0 -0
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 81ba99d8028b6210967df83a90575edf669c1cf5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 4dee3d005d4e97cf9a3b785cde4c46de34cebddb
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 346af1c3ed9c93b1c22309630b5b99caa48ca3c31c6d0f9c3bb267b4233a5870dcd725f859b135c6dc5612817790a49a64fd28197f0ac3f5087a017c48e00d03
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 032201f53edff1a812bab845a0ebc4a8b77bcbe1ad4943df7359cbb960465638ee665aed43a051e5cbd43e11b6c23339c86dfbcf688eac3d38b730a0051716dc
         
     | 
    
        data/CMakeLists.txt
    CHANGED
    
    | 
         @@ -30,7 +30,7 @@ include(build/common/options.cmake) 
     | 
|
| 
       30 
30 
     | 
    
         
             
            # ==========================================================
         
     | 
| 
       31 
31 
     | 
    
         
             
            option(WITH_TRANSACTD_SERVER    "Build Transactd server plugin"                   ON)
         
     | 
| 
       32 
32 
     | 
    
         
             
            option(WITH_TRANSACTD_CLIENTS   "Build Transactd client libraries"                ON)
         
     | 
| 
       33 
     | 
    
         
            -
            option(TRANSACTD_HANDLERSOCKET  "Add HandlerSocket protocol to Transactd plugin"   
     | 
| 
      
 33 
     | 
    
         
            +
            option(TRANSACTD_HANDLERSOCKET  "Add HandlerSocket protocol to Transactd plugin"  OFF)
         
     | 
| 
       34 
34 
     | 
    
         
             
            set(TRANSACTD_PREFIX  "/usr/local/transactd"  CACHE STRING "Prefix for transactd executables")
         
     | 
| 
       35 
35 
     | 
    
         
             
            set(TRANSACTD_CLIENTS_PREFIX    ""            CACHE STRING "Prefix for transactd client libraries")
         
     | 
| 
       36 
36 
     | 
    
         
             
              # options for Ruby client
         
     | 
| 
         @@ -105,7 +105,7 @@ if(WITH_TRANSACTD_CLIENTS) 
     | 
|
| 
       105 
105 
     | 
    
         
             
              else()
         
     | 
| 
       106 
106 
     | 
    
         
             
                set(TDCL_CPP_CHARSET m)
         
     | 
| 
       107 
107 
     | 
    
         
             
              endif()
         
     | 
| 
       108 
     | 
    
         
            -
              foreach(srcname tdclcpp test_tdcl test_tdclcpp_v3 bench_td bench_query tdclstmt querystmts ormsrcgen)
         
     | 
| 
      
 108 
     | 
    
         
            +
              foreach(srcname tdclcpp test_tdcl test_tdclcpp_v3 bench_td bench_query tdclstmt querystmts ormsrcgen haMgr test_tdclha)
         
     | 
| 
       109 
109 
     | 
    
         
             
                subdirs("build/${srcname}")
         
     | 
| 
       110 
110 
     | 
    
         
             
              endforeach()
         
     | 
| 
       111 
111 
     | 
    
         
             
            endif()
         
     | 
    
        data/bin/2.0/transactd.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/bin/2.1/transactd.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/bin/2.2/transactd.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/bin/2.3/transactd.so
    CHANGED
    
    | 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         @@ -773,6 +773,10 @@ describe Transactd, 'V3Features' do 
     | 
|
| 
       773 
773 
     | 
    
         
             
                expect(bpos.pos).not_to eq  0
         
     | 
| 
       774 
774 
     | 
    
         
             
                expect(bpos.filename).not_to eq ""
         
     | 
| 
       775 
775 
     | 
    
         
             
                print "\nbinlog pos = ", bpos.filename, ":", bpos.pos, "\n"
         
     | 
| 
      
 776 
     | 
    
         
            +
                print "gtid (set)= ", bpos.gtid, "\n"
         
     | 
| 
      
 777 
     | 
    
         
            +
                # setGtid
         
     | 
| 
      
 778 
     | 
    
         
            +
                bpos.gtid = "ABCD"
         
     | 
| 
      
 779 
     | 
    
         
            +
                expect(bpos.gtid).to eq "ABCD"
         
     | 
| 
       776 
780 
     | 
    
         
             
                db.endSnapshot();
         
     | 
| 
       777 
781 
     | 
    
         
             
                db.close()
         
     | 
| 
       778 
782 
     | 
    
         
             
              end
         
     | 
| 
         @@ -854,15 +858,78 @@ describe Transactd, 'V3Features' do 
     | 
|
| 
       854 
858 
     | 
    
         
             
                expect(mgr.stat()).to eq 0
         
     | 
| 
       855 
859 
     | 
    
         
             
                expect(Transactd::ConnMgr::statusvarName(0)).to eq "tcp_connections"
         
     | 
| 
       856 
860 
     | 
    
         
             
                # slaveStatus
         
     | 
| 
       857 
     | 
    
         
            -
                recs = mgr.slaveStatus()
         
     | 
| 
      
 861 
     | 
    
         
            +
                recs = mgr.slaveStatus("")
         
     | 
| 
       858 
862 
     | 
    
         
             
                expect(mgr.stat()).to eq 0
         
     | 
| 
       859 
863 
     | 
    
         
             
                expect(mgr.slaveStatusName(0)).to eq "Slave_IO_State"
         
     | 
| 
       860 
     | 
    
         
            -
             
     | 
| 
       861 
864 
     | 
    
         
             
                for i in 0...recs.size() do
         
     | 
| 
       862 
865 
     | 
    
         
             
                  puts (mgr.slaveStatusName(i) + "\t:" + recs[i].value.to_s)
         
     | 
| 
       863 
866 
     | 
    
         
             
                end
         
     | 
| 
      
 867 
     | 
    
         
            +
                # extendedvars
         
     | 
| 
      
 868 
     | 
    
         
            +
                recs = mgr.extendedvars()
         
     | 
| 
      
 869 
     | 
    
         
            +
                expect(recs.size()).to eq 4
         
     | 
| 
      
 870 
     | 
    
         
            +
                expect(Transactd::ConnMgr::extendedVarName(0)).to eq "MySQL_Gtid_Mode"
         
     | 
| 
      
 871 
     | 
    
         
            +
                # record port
         
     | 
| 
      
 872 
     | 
    
         
            +
                expect(recs[0].port).to eq 0
         
     | 
| 
      
 873 
     | 
    
         
            +
                # slaveHosts
         
     | 
| 
      
 874 
     | 
    
         
            +
                recs = mgr.slaveHosts()
         
     | 
| 
      
 875 
     | 
    
         
            +
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 876 
     | 
    
         
            +
                # channels
         
     | 
| 
      
 877 
     | 
    
         
            +
                recs = mgr.channels()
         
     | 
| 
      
 878 
     | 
    
         
            +
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 879 
     | 
    
         
            +
                # haLock
         
     | 
| 
      
 880 
     | 
    
         
            +
                ret = mgr.haLock()
         
     | 
| 
      
 881 
     | 
    
         
            +
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 882 
     | 
    
         
            +
                expect(ret).to eq true
         
     | 
| 
      
 883 
     | 
    
         
            +
                # haUnlock
         
     | 
| 
      
 884 
     | 
    
         
            +
                mgr.haUnlock()
         
     | 
| 
      
 885 
     | 
    
         
            +
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 886 
     | 
    
         
            +
                # setRole
         
     | 
| 
      
 887 
     | 
    
         
            +
                ret = mgr.setRole(0)
         
     | 
| 
      
 888 
     | 
    
         
            +
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 889 
     | 
    
         
            +
                expect(ret).to eq true
         
     | 
| 
      
 890 
     | 
    
         
            +
                ret = mgr.setRole(1)
         
     | 
| 
      
 891 
     | 
    
         
            +
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 892 
     | 
    
         
            +
                expect(ret).to eq true
         
     | 
| 
      
 893 
     | 
    
         
            +
                # setEnableFailover
         
     | 
| 
      
 894 
     | 
    
         
            +
                ret = mgr.setEnableFailover(false)
         
     | 
| 
      
 895 
     | 
    
         
            +
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 896 
     | 
    
         
            +
                expect(ret).to eq true
         
     | 
| 
      
 897 
     | 
    
         
            +
                ret = mgr.setEnableFailover(true)
         
     | 
| 
      
 898 
     | 
    
         
            +
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 899 
     | 
    
         
            +
                expect(ret).to eq true
         
     | 
| 
      
 900 
     | 
    
         
            +
                expect(mgr.isOpen()).to eq true
         
     | 
| 
      
 901 
     | 
    
         
            +
                # enableAutoReconnect
         
     | 
| 
      
 902 
     | 
    
         
            +
                expect(Transactd::Database::enableAutoReconnect()).to eq false
         
     | 
| 
      
 903 
     | 
    
         
            +
                Transactd::Database::setEnableAutoReconnect(true)
         
     | 
| 
      
 904 
     | 
    
         
            +
                expect(Transactd::Database::enableAutoReconnect()).to eq true
         
     | 
| 
      
 905 
     | 
    
         
            +
                Transactd::Database::setEnableAutoReconnect(false)
         
     | 
| 
      
 906 
     | 
    
         
            +
                mgr.disconnect()
         
     | 
| 
      
 907 
     | 
    
         
            +
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 908 
     | 
    
         
            +
                expect(mgr.isOpen()).to eq false
         
     | 
| 
      
 909 
     | 
    
         
            +
                # haNameReslover
         
     | 
| 
      
 910 
     | 
    
         
            +
                host = "localhost"
         
     | 
| 
      
 911 
     | 
    
         
            +
                user = "root"
         
     | 
| 
      
 912 
     | 
    
         
            +
                pwd = ""
         
     | 
| 
      
 913 
     | 
    
         
            +
                ret = Transactd::HaNameResolver::start("master123", "slave1, slave2", host, 0, user, pwd)
         
     | 
| 
      
 914 
     | 
    
         
            +
                expect(ret).to eq 1
         
     | 
| 
      
 915 
     | 
    
         
            +
                # portMap
         
     | 
| 
      
 916 
     | 
    
         
            +
                Transactd::HaNameResolver::addPortMap(3307, 8611)
         
     | 
| 
      
 917 
     | 
    
         
            +
                Transactd::HaNameResolver::clearPortMap()
         
     | 
| 
      
 918 
     | 
    
         
            +
                # master slave name
         
     | 
| 
      
 919 
     | 
    
         
            +
                expect(Transactd::HaNameResolver::master()).to eq host
         
     | 
| 
      
 920 
     | 
    
         
            +
                expect(Transactd::HaNameResolver::slave()).to eq "-"
         
     | 
| 
      
 921 
     | 
    
         
            +
                # connect by master roll
         
     | 
| 
      
 922 
     | 
    
         
            +
                mgr.connect("tdap://" + user + "@master123/?pwd=" + pwd)
         
     | 
| 
      
 923 
     | 
    
         
            +
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 924 
     | 
    
         
            +
                expect(mgr.isOpen()).to eq true
         
     | 
| 
       864 
925 
     | 
    
         
             
                mgr.disconnect()
         
     | 
| 
       865 
926 
     | 
    
         
             
                expect(mgr.stat()).to eq 0
         
     | 
| 
      
 927 
     | 
    
         
            +
                expect(mgr.isOpen()).to eq false
         
     | 
| 
      
 928 
     | 
    
         
            +
                # stop 
         
     | 
| 
      
 929 
     | 
    
         
            +
                Transactd::HaNameResolver::stop()
         
     | 
| 
      
 930 
     | 
    
         
            +
                mgr.connect("tdap://" + user + "@master123/?pwd=" + pwd)
         
     | 
| 
      
 931 
     | 
    
         
            +
                expect(mgr.stat()).to eq Transactd::ERROR_TD_HOSTNAME_NOT_FOUND
         
     | 
| 
      
 932 
     | 
    
         
            +
                mgr.disconnect()
         
     | 
| 
       866 
933 
     | 
    
         
             
                tb_other.close()
         
     | 
| 
       867 
934 
     | 
    
         
             
                db_other.close()
         
     | 
| 
       868 
935 
     | 
    
         
             
              end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: transactd
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.5.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: x86-mswin32-100
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - BizStation Corp.
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-07-15 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: Transactd client for ruby gem
         
     | 
| 
       14 
14 
     | 
    
         
             
            email: transactd@bizstation.jp
         
     | 
| 
         @@ -22,8 +22,8 @@ files: 
     | 
|
| 
       22 
22 
     | 
    
         
             
            - bin/2.2/transactd.so
         
     | 
| 
       23 
23 
     | 
    
         
             
            - bin/2.3/transactd.so
         
     | 
| 
       24 
24 
     | 
    
         
             
            - build/tdclrb/bldgem/extconf.rb
         
     | 
| 
       25 
     | 
    
         
            -
            - bin/common/ 
     | 
| 
       26 
     | 
    
         
            -
            - bin/common/ 
     | 
| 
      
 25 
     | 
    
         
            +
            - bin/common/tdclcpp_vc100_32mr_3_5.dll
         
     | 
| 
      
 26 
     | 
    
         
            +
            - bin/common/tdclc_32_3_5.dll
         
     | 
| 
       27 
27 
     | 
    
         
             
            - build/tdclrb/gem/detect.rb
         
     | 
| 
       28 
28 
     | 
    
         
             
            - build/tdclrb/gem/helper.rb
         
     | 
| 
       29 
29 
     | 
    
         
             
            - build/tdclrb/gem/INSTALLLOG.win32
         
     | 
    
        data/bin/common/tdclc_32_3_4.dll
    DELETED
    
    | 
         Binary file 
     | 
| 
         Binary file 
     |