Skip to content

Commit

Permalink
Merge branch 'sideplugin-7.04.0-415200d7' into sideplugin-7.06.0-a0c6…
Browse files Browse the repository at this point in the history
…3083
  • Loading branch information
rockeet committed Jul 21, 2022
2 parents a0c6308 + c30b2fa commit 9327631
Show file tree
Hide file tree
Showing 197 changed files with 5,238 additions and 1,385 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sanity_check.yml
Expand Up @@ -34,8 +34,8 @@ jobs:
with:
args: https://raw.githubusercontent.com/llvm/llvm-project/release/12.x/clang/tools/clang-format/clang-format-diff.py

- name: Check format
run: VERBOSE_CHECK=1 make check-format
#- name: Check format
#run: VERBOSE_CHECK=1 make check-format

- name: Compare buckify output
run: make check-buck-targets
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -7,6 +7,7 @@ rocksdb.pc
*.dylib*
*.gcda
*.gcno
*.log
*.o
*.o.tmp
*.so
Expand All @@ -25,6 +26,7 @@ rocksdb.pc
*.vcxproj
*.vcxproj.filters
*.sln
*.sst
*.cmake
.watchmanconfig
CMakeCache.txt
Expand Down Expand Up @@ -94,3 +96,4 @@ fuzz/crash-*

cmake-build-*
third-party/folly/
*_dbg
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "sideplugin/rockside"]
path = sideplugin/rockside
url = https://github.com/topling/rockside.git
40 changes: 40 additions & 0 deletions CMakeLists.txt
Expand Up @@ -175,6 +175,8 @@ else()
endif()
endif()

include_directories(sideplugin/rockside/src)

option(WITH_MD_LIBRARY "build with MD" ON)
if(WIN32 AND MSVC)
if(WITH_MD_LIBRARY)
Expand All @@ -185,6 +187,11 @@ if(WIN32 AND MSVC)
endif()

if(MSVC)
if(MSVC_VERSION LESS 1926)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /experimental:preprocessor")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:preprocessor")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zi /nologo /EHsc /GS /Gd /GR /GF /fp:precise /Zc:wchar_t /Zc:forScope /errorReport:queue")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FC /d2Zi+ /W4 /wd4127 /wd4800 /wd4996 /wd4351 /wd4100 /wd4204 /wd4324")
else()
Expand Down Expand Up @@ -592,8 +599,40 @@ endif()
find_package(Threads REQUIRED)

# Main library source code
if (EXISTS ${PROJECT_SOURCE_DIR}/sideplugin/topling-rocks/CMakeFileList.txt)
message(STATUS "found ${PROJECT_SOURCE_DIR}/sideplugin/topling-rocks/CMakeFileList.txt")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
include(${PROJECT_SOURCE_DIR}/sideplugin/topling-rocks/CMakeFileList.txt)
else()
message(STATUS "not found ${PROJECT_SOURCE_DIR}/sideplugin/topling-rocks/CMakeFileList.txt")
endif()

if (EXISTS ${PROJECT_SOURCE_DIR}/sideplugin/rockside/CMakeFileList.txt)
message(STATUS "found ${PROJECT_SOURCE_DIR}/sideplugin/rockside/CMakeFileList.txt")
include(${PROJECT_SOURCE_DIR}/sideplugin/rockside/CMakeFileList.txt)
else()
message(STATUS "not found ${PROJECT_SOURCE_DIR}/sideplugin/rockside/CMakeFileList.txt")
endif()

set (cspp_memtab ${PROJECT_SOURCE_DIR}/sideplugin/cspp-memtable/cspp_memtable.cc)
if (EXISTS ${cspp_memtab})
message(STATUS "found ${cspp_memtab}")
set (topling_rocks_src ${topling_rocks_src} ${cspp_memtab})
else()
message(STATUS "not found ${cspp_memtab}")
endif()

set (cspp_wbwi ${PROJECT_SOURCE_DIR}/sideplugin/cspp-wbwi/cspp_wbwi.cc)
if (EXISTS ${cspp_wbwi})
message(STATUS "found ${cspp_wbwi}")
set (topling_rocks_src ${topling_rocks_src} ${cspp_wbwi})
else()
message(STATUS "not found ${cspp_wbwi}")
endif()

set(SOURCES
${rockside_src}
${topling_rocks_src}
cache/cache.cc
cache/cache_entry_roles.cc
cache/cache_key.cc
Expand Down Expand Up @@ -621,6 +660,7 @@ set(SOURCES
db/builder.cc
db/c.cc
db/column_family.cc
db/compaction/compaction_executor.cc
db/compaction/compaction.cc
db/compaction/compaction_iterator.cc
db/compaction/compaction_picker.cc
Expand Down
5 changes: 5 additions & 0 deletions COPYING
@@ -1,3 +1,8 @@
Copyright (c) 2021 The ToplingDB Authors. All rights reserved.

We disallow bytedance using this software, other terms are identical with
GPLv2 License, see below:
---------------------------------------------------------------------------
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Expand Down
5 changes: 5 additions & 0 deletions LICENSE.Apache
@@ -1,3 +1,8 @@
Copyright (c) 2021 The ToplingDB Authors. All rights reserved.

We disallow bytedance using this software, other terms are identical with
Apache License, see below:
---------------------------------------------------------------------------

Apache License
Version 2.0, January 2004
Expand Down
6 changes: 6 additions & 0 deletions LICENSE.leveldb
@@ -1,3 +1,9 @@
Copyright (c) 2021 The ToplingDB Authors. All rights reserved.

We disallow bytedance using this software, other terms are identical with
original license, see below:
---------------------------------------------------------------------------

This contains code that is from LevelDB, and that code is under the following license:

Copyright (c) 2011 The LevelDB Authors. All rights reserved.
Expand Down

0 comments on commit 9327631

Please sign in to comment.