Skip to content

Commit

Permalink
Rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim committed Nov 20, 2023
1 parent 35a41ea commit 8d242d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function(add_kuzu_api_test TEST_NAME)
endfunction()

add_definitions(-DKUZU_ROOT_DIRECTORY="${PROJECT_SOURCE_DIR}")
add_definitions(-DKUZU_STORAGE_VERSION="${CMAKE_PROJECT_VERSION}")
add_definitions(-DKUZU_CMAKE_VERSION="${CMAKE_PROJECT_VERSION}")

include_directories(src/include)
include_directories(third_party/antlr4_cypher/include)
Expand Down
2 changes: 1 addition & 1 deletion src/include/common/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace kuzu {
namespace common {

constexpr char KUZU_VERSION[] = TO_STRING(KUZU_STORAGE_VERSION);
constexpr char KUZU_VERSION[] = TO_STRING(KUZU_CMAKE_VERSION);

constexpr uint64_t DEFAULT_VECTOR_CAPACITY_LOG_2 = 11;
constexpr uint64_t DEFAULT_VECTOR_CAPACITY = (uint64_t)1 << DEFAULT_VECTOR_CAPACITY_LOG_2;
Expand Down
6 changes: 3 additions & 3 deletions src/storage/storage_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ namespace storage {

storage_version_t StorageVersionInfo::getStorageVersion() {
auto storageVersionInfo = getStorageVersionInfo();
if (!storageVersionInfo.contains(KUZU_STORAGE_VERSION)) {
// If the current KUZU_STORAGE_VERSION is not in the map,
if (!storageVersionInfo.contains(KUZU_CMAKE_VERSION)) {
// If the current KUZU_CMAKE_VERSION is not in the map,
// then we must run the newest version of kuzu
// LCOV_EXCL_START
storage_version_t maxVersion = 0;
Expand All @@ -16,7 +16,7 @@ storage_version_t StorageVersionInfo::getStorageVersion() {
return maxVersion;
// LCOV_EXCL_STOP
}
return storageVersionInfo.at(KUZU_STORAGE_VERSION);
return storageVersionInfo.at(KUZU_CMAKE_VERSION);
}

} // namespace storage
Expand Down

0 comments on commit 8d242d4

Please sign in to comment.