@@ -1632,11 +1632,13 @@ class Rdb_transaction
1632
1632
}
1633
1633
else
1634
1634
{
1635
+ #ifdef MARIAROCKS_NOT_YET
1635
1636
my_core::thd_binlog_pos (m_thd, &m_mysql_log_file_name,
1636
1637
&m_mysql_log_offset, &m_mysql_gtid);
1637
1638
binlog_manager.update (m_mysql_log_file_name,
1638
1639
m_mysql_log_offset,
1639
1640
m_mysql_gtid, get_write_batch ());
1641
+ #endif
1640
1642
return commit_no_binlog ();
1641
1643
}
1642
1644
}
@@ -2559,6 +2561,7 @@ static int rocksdb_prepare(handlerton* hton, THD* thd, bool prepare_tx)
2559
2561
{
2560
2562
return 1 ;
2561
2563
}
2564
+ #ifdef MARIAROCKS_NOT_YET // disable prepare/commit
2562
2565
if (prepare_tx ||
2563
2566
(!my_core::thd_test_options (thd, OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN))) {
2564
2567
/* We were instructed to prepare the whole transaction, or
@@ -2594,7 +2597,7 @@ static int rocksdb_prepare(handlerton* hton, THD* thd, bool prepare_tx)
2594
2597
2595
2598
DEBUG_SYNC (thd, " rocksdb.prepared" );
2596
2599
}
2597
-
2600
+ # endif
2598
2601
return 0 ;
2599
2602
}
2600
2603
@@ -2660,9 +2663,12 @@ static void rdb_xid_from_string(const std::string& src, XID *dst)
2660
2663
Reading last committed binary log info from RocksDB system row.
2661
2664
The info is needed for crash safe slave/master to work.
2662
2665
*/
2663
- static int rocksdb_recover (handlerton* hton, XID* xid_list, uint len,
2666
+ static int rocksdb_recover (handlerton* hton, XID* xid_list, uint len)
2667
+ #ifdef MARIAROCKS_NOT_YET
2664
2668
char * binlog_file, my_off_t * binlog_pos)
2669
+ #endif
2665
2670
{
2671
+ #ifdef MARIAROCKS_NOT_YET
2666
2672
if (binlog_file && binlog_pos)
2667
2673
{
2668
2674
char file_buf[FN_REFLEN+1 ]= {0 };
@@ -2683,6 +2689,7 @@ static int rocksdb_recover(handlerton* hton, XID* xid_list, uint len,
2683
2689
}
2684
2690
}
2685
2691
}
2692
+ #endif
2686
2693
2687
2694
if (len == 0 || xid_list == nullptr )
2688
2695
{
0 commit comments