Skip to content

Commit

Permalink
finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
andyfengHKU committed Sep 10, 2023
1 parent c3949e2 commit c357981
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/c_api/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "common/types/value.h"
#include "main/kuzu.h"
#include "planner/logical_plan/logical_plan.h"
#include "transaction/transaction_context.h"

using namespace kuzu::common;
using namespace kuzu::main;
Expand Down
2 changes: 0 additions & 2 deletions src/catalog/catalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "catalog/rel_table_group_schema.h"
#include "common/ser_deser.h"
#include "common/string_utils.h"
#include "storage/storage_utils.h"

using namespace kuzu::common;
using namespace kuzu::storage;
Expand All @@ -20,7 +19,6 @@ Catalog::Catalog(WAL* wal) : wal{wal} {
catalogContentForReadOnlyTrx = std::make_unique<CatalogContent>(wal->getDirectory());
}

// TODO: split
void Catalog::prepareCommitOrRollback(TransactionAction action) {
if (hasUpdates()) {
wal->logCatalogRecord();
Expand Down
2 changes: 1 addition & 1 deletion src/include/binder/bound_transaction_statement.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ class BoundTransactionStatement : public BoundStatement {
};

} // namespace binder
} // namespace kuzu
} // namespace kuzu
2 changes: 0 additions & 2 deletions src/include/processor/execution_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "common/profiler.h"
#include "main/client_context.h"
#include "main/prepared_statement.h"
#include "storage/buffer_manager/buffer_manager.h"
#include "storage/buffer_manager/memory_manager.h"

Expand All @@ -14,7 +13,6 @@ struct ExecutionContext {
common::Profiler* profiler;
storage::MemoryManager* memoryManager;
storage::BufferManager* bufferManager;
main::PreparedStatement* preparedStatement;
main::ClientContext* clientContext;

ExecutionContext(uint64_t numThreads, common::Profiler* profiler,
Expand Down
2 changes: 1 addition & 1 deletion src/include/transaction/transaction_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ class TransactionContext {
};

} // namespace transaction
} // namespace kuzu
} // namespace kuzu
1 change: 0 additions & 1 deletion src/processor/operator/physical_operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <regex>

#include "common/exception.h"
#include "transaction/transaction_context.h"

using namespace kuzu::common;

Expand Down
1 change: 0 additions & 1 deletion src/storage/wal/wal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ void WAL::logAddPropertyRecord(table_id_t tableID, property_id_t propertyID) {
}

void WAL::clearWAL() {
bufferManager.clearEvictionQueue();
bufferManager.removeFilePagesFromFrames(*fileHandle);
fileHandle->resetToZeroPagesAndPageCapacity();
initCurrentPage();
Expand Down
2 changes: 1 addition & 1 deletion src/transaction/transaction_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ void TransactionContext::beginTransactionInternal(TransactionType transactionTyp
}

} // namespace transaction
} // namespace kuzu
} // namespace kuzu

0 comments on commit c357981

Please sign in to comment.