Browse Source

[t:2494], merge handlerton portion to main

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@19074 c7de825b-a66e-492c-adef-691d508d4ae1
pull/73/head
Zardosht Kasheff 13 years ago
committed by Yoni Fogel
parent
commit
52f5774532
  1. 6
      storage/tokudb/ha_tokudb.cc
  2. 1
      storage/tokudb/hatoku_defines.h

6
storage/tokudb/ha_tokudb.cc

@ -579,6 +579,9 @@ inline HA_TOKU_ISO_LEVEL tx_to_toku_iso(ulong tx_isolation) {
if (tx_isolation == ISO_READ_UNCOMMITTED) {
return hatoku_iso_read_uncommitted;
}
else if (tx_isolation == ISO_READ_COMMITTED) {
return hatoku_iso_read_committed;
}
else {
return hatoku_iso_serializable;
}
@ -588,6 +591,9 @@ inline u_int32_t toku_iso_to_txn_flag (HA_TOKU_ISO_LEVEL lvl) {
if (lvl == hatoku_iso_read_uncommitted) {
return DB_READ_UNCOMMITTED;
}
else if (lvl == hatoku_iso_read_committed) {
return DB_READ_COMMITTED;
}
else {
return 0;
}

1
storage/tokudb/hatoku_defines.h

@ -79,6 +79,7 @@ inline unsigned int my_tid() {
typedef enum {
hatoku_iso_not_set = 0,
hatoku_iso_read_uncommitted,
hatoku_iso_read_committed,
hatoku_iso_serializable
} HA_TOKU_ISO_LEVEL;

Loading…
Cancel
Save