From ff641be5dc09812dc29f440a69f9eaf07e29e175 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Tue, 2 Dec 2008 21:45:58 +0000 Subject: [PATCH] add an explicit ID parameter to StaticTuple. Instantiators of StaticTuple need to make sure this is different for each static tuple type that may coexist in the same page file. This allows multiple copies of rose to run at once. --- benchmarks/roseTable.cpp | 2 +- benchmarks/roseTableTpcCH-workload1.cpp | 2 +- benchmarks/roseTableTpcCH-workload2.cpp | 2 +- stasis/page/compression/staticTuple.h | 16 ++++++++-------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/benchmarks/roseTable.cpp b/benchmarks/roseTable.cpp index 7654954..10d7a28 100644 --- a/benchmarks/roseTable.cpp +++ b/benchmarks/roseTable.cpp @@ -17,7 +17,7 @@ int main(int argc, char **argv) { typedef int32_t typ9; #define COLS 10 - typedef rose::StaticTuple tup; + typedef rose::StaticTuple tup; using rose::For; using rose::Rle; using rose::Nop; diff --git a/benchmarks/roseTableTpcCH-workload1.cpp b/benchmarks/roseTableTpcCH-workload1.cpp index edea379..a3edd57 100644 --- a/benchmarks/roseTableTpcCH-workload1.cpp +++ b/benchmarks/roseTableTpcCH-workload1.cpp @@ -53,7 +53,7 @@ int main(int argc, char **argv) { typedef int64_t typ18; typedef int64_t typ19; #define COLS 7 - typedef rose::StaticTuple tup; using rose::For; diff --git a/benchmarks/roseTableTpcCH-workload2.cpp b/benchmarks/roseTableTpcCH-workload2.cpp index c9b85b6..cb6137e 100644 --- a/benchmarks/roseTableTpcCH-workload2.cpp +++ b/benchmarks/roseTableTpcCH-workload2.cpp @@ -30,7 +30,7 @@ int main(int argc, char **argv) { typedef int64_t typ19; #define COLS 11 - typedef rose::StaticTuple tup; + typedef rose::StaticTuple tup; using rose::For; using rose::Rle; using rose::Nop; diff --git a/stasis/page/compression/staticTuple.h b/stasis/page/compression/staticTuple.h index 2e6b003..cb158b0 100644 --- a/stasis/page/compression/staticTuple.h +++ b/stasis/page/compression/staticTuple.h @@ -2,7 +2,7 @@ #define _ROSE_COMPRESSION_STATICTUPLE_H__ namespace rose { - template - short StaticTuple::cols_[N]; - template - byte_off_t StaticTuple::size_[N]; - template - bool StaticTuple::first_ = true;