Commit 7cbb89fa authored by Yoni Fogel's avatar Yoni Fogel

refs #5902 Add layout version change

git-svn-id: file:///svn/toku/tokudb@52164 c7de825b-a66e-492c-adef-691d508d4ae1
parent bb0aed83
...@@ -369,6 +369,7 @@ serialize_ft_min_size (uint32_t version) { ...@@ -369,6 +369,7 @@ serialize_ft_min_size (uint32_t version) {
size_t size = 0; size_t size = 0;
switch(version) { switch(version) {
case FT_LAYOUT_VERSION_24:
case FT_LAYOUT_VERSION_23: case FT_LAYOUT_VERSION_23:
case FT_LAYOUT_VERSION_22: case FT_LAYOUT_VERSION_22:
case FT_LAYOUT_VERSION_21: case FT_LAYOUT_VERSION_21:
......
...@@ -31,7 +31,8 @@ enum ft_layout_version_e { ...@@ -31,7 +31,8 @@ enum ft_layout_version_e {
FT_LAYOUT_VERSION_21 = 21, // Ming: Add max_msn_in_ft to header, FT_LAYOUT_VERSION_21 = 21, // Ming: Add max_msn_in_ft to header,
// Removed log suppression logentry // Removed log suppression logentry
FT_LAYOUT_VERSION_22 = 22, // Ming: Add oldest known referenced xid to each ftnode, for better garbage collection FT_LAYOUT_VERSION_22 = 22, // Ming: Add oldest known referenced xid to each ftnode, for better garbage collection
FT_LAYOUT_VERSION_23 = 23, // Riddler: change logentries that log transactions to store TXNID_PAIRs instead of TXNIDs FT_LAYOUT_VERSION_23 = 23, // Ming: Fix upgrade path #5902
FT_LAYOUT_VERSION_24 = 24, // Riddler: change logentries that log transactions to store TXNID_PAIRs instead of TXNIDs
FT_NEXT_VERSION, // the version after the current version FT_NEXT_VERSION, // the version after the current version
FT_LAYOUT_VERSION = FT_NEXT_VERSION-1, // A hack so I don't have to change this line. FT_LAYOUT_VERSION = FT_NEXT_VERSION-1, // A hack so I don't have to change this line.
FT_LAYOUT_MIN_SUPPORTED_VERSION = FT_LAYOUT_VERSION_13, // Minimum version supported FT_LAYOUT_MIN_SUPPORTED_VERSION = FT_LAYOUT_VERSION_13, // Minimum version supported
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment