Skip to content

Commit 929289e

Browse files
committed
chore(): rebasing
1 parent d9187e6 commit 929289e

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

dbcon/joblist/disk-based-topnorderby.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ void DiskBasedTopNOrderBy::flushCurrentToDisk(RowGroupDL& dl, rowgroup::RowGroup
4545

4646
incrementGenerationCounter();
4747
}
48-
void DiskBasedTopNOrderBy::diskBasedMergePhaseIfNeeded(std::vector<RowGroupDLSPtr>& dataLists)
48+
void DiskBasedTopNOrderBy::diskBasedMergePhaseIfNeeded(std::vector<RowGroupDLSPtr>& /*dataLists*/)
4949
{
5050
}
5151

52-
std::vector<std::string> DiskBasedTopNOrderBy::getGenerationFileNamesNextBatch(const size_t batchSize)
52+
std::vector<std::string> DiskBasedTopNOrderBy::getGenerationFileNamesNextBatch(const size_t /*batchSize*/)
5353
{
5454
return {};
5555
}

dbcon/joblist/disk-based-topnorderby.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class DiskBasedTopNOrderBy : public rowgroup::RGDumper
3434
// std::string fCompStr = config::Config::makeConfig()->getConfig("RowAggregation", "Compression");
3535
public:
3636
// TODO Parametrize compression, tmpdir and memory manager (can be temp)
37-
DiskBasedTopNOrderBy(ResourceManager* rm)
37+
DiskBasedTopNOrderBy(ResourceManager* /*rm*/)
3838
: RGDumper(compress::getCompressInterfaceByName("LZ4"), std::make_unique<rowgroup::MemManager>(),
3939
config::Config::makeConfig()->getTempFileDir(config::Config::TempDirPurpose::Sorting),
4040
"Sorting", reinterpret_cast<std::uintptr_t>(this))

dbcon/joblist/tupleannexstep.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ struct TAEq
8282
bool operator()(const rowgroup::Row::Pointer&, const rowgroup::Row::Pointer&) const;
8383
};
8484
// TODO: Generalize these and put them back in utils/common/hasher.h
85-
using TNSDistinctMap_t = std::unordered_set<rowgroup::Row::Pointer, TAHasher, TAEq,
86-
allocators::CountingAllocator<rowgroup::Row::Pointer> >;
85+
using TNSDistinctMap_t =
86+
std::unordered_set<rowgroup::Row::Pointer, TAHasher, TAEq, STLPoolAllocator<rowgroup::Row::Pointer> >;
8787
}; // namespace
8888

8989
inline uint64_t TAHasher::operator()(const Row::Pointer& p) const
@@ -821,9 +821,8 @@ void TupleAnnexStep::finalizeParallelOrderByDistinct()
821821

822822
auto allocSorting = fRm->getAllocator<ordering::OrderByRow>();
823823
ordering::SortingPQ finalPQ(rowgroup::rgCommonSize, allocSorting);
824-
auto allocDistinct = fRm->getAllocator<rowgroup::Row::Pointer>();
825824
std::unique_ptr<TNSDistinctMap_t> distinctMap(
826-
new TNSDistinctMap_t(10, TAHasher(this), TAEq(this), allocDistinct));
825+
new TNSDistinctMap_t(10, TAHasher(this), TAEq(this), STLPoolAllocator<rowgroup::Row::Pointer>(fRm)));
827826
fRowGroupIn.initRow(&row1);
828827
fRowGroupIn.initRow(&row2);
829828

utils/rowgroup/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include_directories(${ENGINE_COMMON_INCLUDES})
22

33
# ########## next target ###############
44

5-
set(rowgroup_LIB_SRCS rowaggregation.cpp rowgroup.cpp rowstorage.cpp)
5+
set(rowgroup_LIB_SRCS rowaggregation.cpp rowgroup.cpp rowstorage.cpp dumper.cpp)
66

77
columnstore_library(rowgroup ${rowgroup_LIB_SRCS})
88
columnstore_link(rowgroup PRIVATE ${NETSNMP_LIBRARIES} funcexp loggingcpp)

utils/rowgroup/dumper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class RGDumper : protected Dumper
5656
{
5757
public:
5858
RGDumper(const compress::CompressInterface* comp, std::unique_ptr<MemManager> mm, const std::string& tmpDir,
59-
const std::string& operationName, const uint64_t uniqId)
59+
const std::string& operationName, const uint64_t /*uniqId*/)
6060
: Dumper(comp, mm), fTmpDir(tmpDir), fOperationName(operationName)
6161
{
6262
}

0 commit comments

Comments
 (0)