Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 5c84cd5

Browse files
committed
Merge branch 'master' into junit
2 parents 80cc371 + da74d36 commit 5c84cd5

24 files changed

+451
-335
lines changed

script/installation/packages.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
## * OSX
1818
## =================================================================
1919

20+
set -o errexit
2021

2122
# Determine OS platform
2223
UNAME=$(uname | tr "[:upper:]" "[:lower:]")
@@ -104,14 +105,12 @@ if [ "$DISTRO" = "UBUNTU" ]; then
104105
echo -e "\n# Added by Peloton 'packages.sh' script on $(date)\ndeb $LLVM_PKG_URL $LLVM_PKG_TARGET" | sudo tee -a /etc/apt/sources.list > /dev/null
105106
fi
106107
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
107-
sudo apt-get update -qq
108108
CMAKE_NAME="cmake3"
109-
FORCE_Y="--force-yes"
110109
else
111110
CMAKE_NAME="cmake"
112-
FORCE_Y=""
113111
fi
114112

113+
sudo apt-get update
115114
FORCE_Y=""
116115
PKG_CMAKE="cmake"
117116
PKG_LLVM="llvm-3.7"
@@ -134,7 +133,7 @@ if [ "$DISTRO" = "UBUNTU" ]; then
134133
fi
135134
TFCApiFile="libtensorflow-${TF_TYPE}-linux-x86_64-${TF_VERSION}.tar.gz"
136135
LinkerConfigCmd="sudo ldconfig"
137-
sudo apt-get -qq $FORCE_Y --ignore-missing -y install \
136+
sudo apt-get -q $FORCE_Y --ignore-missing -y install \
138137
$PKG_CMAKE \
139138
$PKG_LLVM \
140139
$PKG_CLANG \
@@ -171,7 +170,7 @@ if [ "$DISTRO" = "UBUNTU" ]; then
171170
## DEBIAN
172171
## ------------------------------------------------
173172
elif [ "$DISTRO" = "DEBIAN OS" ]; then
174-
sudo apt-get -qq --ignore-missing -y install \
173+
sudo apt-get -q --ignore-missing -y install \
175174
git \
176175
g++ \
177176
clang \
@@ -312,6 +311,7 @@ elif [[ "$DISTRO" == *"REDHAT"* ]] && [[ "${DISTRO_VER%.*}" == "7" ]]; then
312311
## DARWIN (OSX)
313312
## ------------------------------------------------
314313
elif [ "$DISTRO" = "DARWIN" ]; then
314+
set +o errexit
315315
if test ! $(which brew); then
316316
echo "Installing homebrew..."
317317
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

src/binder/binder_context.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ void BinderContext::AddRegularTable(const std::string db_name,
3737
const std::string table_alias,
3838
concurrency::TransactionContext *txn) {
3939
// using catalog object to retrieve meta-data
40-
// PL_ASSERT(txn->catalog_cache.GetDatabaseObject(db_name) != nullptr);
4140
auto table_object =
4241
catalog::Catalog::GetInstance()->GetTableObject(db_name, table_name, txn);
43-
// txn->catalog_cache.GetDatabaseObject(db_name)->GetTableObject(table_name, true);
4442

4543
if (regular_table_alias_map_.find(table_alias) !=
4644
regular_table_alias_map_.end() ||

src/common/container/cuckoo_map.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include "common/container/cuckoo_map.h"
1717
#include "common/internal_types.h"
18+
#include "common/item_pointer.h"
1819
#include "common/logger.h"
1920
#include "common/macros.h"
2021

@@ -34,6 +35,9 @@ class StatementCache;
3435
CUCKOO_MAP_TEMPLATE_ARGUMENTS
3536
CUCKOO_MAP_TYPE::CuckooMap() {}
3637

38+
CUCKOO_MAP_TEMPLATE_ARGUMENTS
39+
CUCKOO_MAP_TYPE::CuckooMap(size_t initial_size) : cuckoo_map(initial_size) {}
40+
3741
CUCKOO_MAP_TEMPLATE_ARGUMENTS
3842
CUCKOO_MAP_TYPE::~CuckooMap() {}
3943

@@ -83,6 +87,18 @@ CUCKOO_MAP_TEMPLATE_ARGUMENTS
8387
CUCKOO_MAP_ITERATOR_TYPE
8488
CUCKOO_MAP_TYPE::GetIterator() { return cuckoo_map.lock_table(); }
8589

90+
CUCKOO_MAP_TEMPLATE_ARGUMENTS
91+
CUCKOO_MAP_ITERATOR_TYPE
92+
CUCKOO_MAP_TYPE::GetConstIterator() const {
93+
// WARNING: This is a compiler hack and should never be used elsewhere
94+
// If you are considering using this, please ask Marcel first
95+
// We need the const iterator on the const object and the cuckoohash
96+
// library returns a lock_table object. The other option would be to
97+
// Modify the cuckoohash library which is not neat.
98+
auto locked_table = const_cast<CuckooMap *>(this)->cuckoo_map.lock_table();
99+
return locked_table;
100+
}
101+
86102
// Explicit template instantiation
87103
template class CuckooMap<uint32_t, uint32_t>;
88104

@@ -102,4 +118,8 @@ template class CuckooMap<std::shared_ptr<oid_t>, std::shared_ptr<oid_t>>;
102118
// Used in StatementCacheManager
103119
template class CuckooMap<StatementCache *, StatementCache *>;
104120

121+
// Used in InternalTypes
122+
template class CuckooMap<ItemPointer, RWType, ItemPointerHasher,
123+
ItemPointerComparator>;
124+
105125
} // namespace peloton

0 commit comments

Comments
 (0)