Skip to content

Commit

Permalink
refroot
Browse files Browse the repository at this point in the history
Signed-off-by: Akshat Sikarwar <[email protected]>
  • Loading branch information
akshatsikarwar committed Feb 24, 2025
1 parent 80ba42e commit 75dcd8e
Show file tree
Hide file tree
Showing 90 changed files with 104 additions and 922 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL Darwin)
endif()
endif()

list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

if(COMDB2_BBCMAKE)
include(${COMDB2_BBCMAKE})
add_definitions(-DCOMDB2_BBCMAKE)
else()
configure_file(bbinc/plhash.in bbinc/plhash.h COPYONLY)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ${PROJECT_SOURCE_DIR}/cmake)
configure_file(bbinc/plhash.in bbinc/plhash.h COPYONLY)
endif()

find_package(LZ4 REQUIRED)
find_package(OpenSSL REQUIRED)
set(PROTOBUF_C_MIN_VERSION 1.1.0)
Expand All @@ -83,8 +85,6 @@ if(WITH_QKAFKA)
add_definitions(-DWITH_QKAFKA)
endif()

endif(COMDB2_BBCMAKE)

option(COMDB2_LEGACY_DEFAULTS "Legacy defaults without lrl override" OFF)

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
Expand Down
193 changes: 0 additions & 193 deletions bbinc/plhash.in

This file was deleted.

8 changes: 0 additions & 8 deletions bbinc/plhash_glue.h

This file was deleted.

2 changes: 1 addition & 1 deletion bbinc/tunables.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef _TUNABLES_H
#define _TUNABLES_H

#include "plhash.h"
#include <plhash_glue.h>

typedef enum {
/*
Expand Down
3 changes: 1 addition & 2 deletions bdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ include_directories(
${PROTOBUF-C_INCLUDE_DIR}
)
if (COMDB2_BBCMAKE)
target_link_libraries(bdb PUBLIC db lz4)
configure_bb_target(bdb V2 NO_BUILDID NO_PLINKSTRINGS HEADER_DIRS)
comdb2_lib_target(bdb)
endif()
add_dependencies(bdb db mem proto)
2 changes: 1 addition & 1 deletion bdb/bdb_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include <object_pool.h>
#include <list.h>
#include <plhash.h>
#include <plhash_glue.h>
#include <thread_util.h>

#include "bdb_cursor.h"
Expand Down
2 changes: 1 addition & 1 deletion bdb/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ as long as there was a successful move in the past
#include "bdb_osqltrn.h"
#include <dlfcn.h>
#include <list.h>
#include <plhash.h>
#include <plhash_glue.h>
#include "logmsg.h"
#include "util.h"
#include "tohex.h"
Expand Down
2 changes: 1 addition & 1 deletion bdb/genid.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#include <build/db.h>
#include <epochlib.h>
#include <ctrace.h>
#include <plhash.h>
#include <plhash_glue.h>
#include <list.h>

#include <net.h>
Expand Down
2 changes: 1 addition & 1 deletion bdb/rowlocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <segstr.h>
#include <list.h>
#include <plhash.h>
#include <plhash_glue.h>
#include <fsnapf.h>

#include <net.h>
Expand Down
2 changes: 1 addition & 1 deletion bdb/temptable.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <sbuf2.h>
#include "bdb_int.h"
#include <list.h>
#include <plhash.h>
#include <plhash_glue.h>
#include <sys/time.h>

#ifdef _LINUX_SOURCE
Expand Down
3 changes: 1 addition & 2 deletions berkdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,7 @@ elseif(${CMAKE_C_COMPILER_ID} STREQUAL Clang OR ${CMAKE_C_COMPILER_ID} STREQUAL
endif()

if (COMDB2_BBCMAKE)
target_link_libraries(db PUBLIC lz4 openssl)
comdb2_bb_target(db)
comdb2_lib_target(db)
endif()

option(PAGELIST_DEBUG "Enable debug logic for pagelist dumping and loading" OFF)
Expand Down
2 changes: 1 addition & 1 deletion berkdb/build/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <list.h>
#include <pool.h>
#include <plhash.h>
#include <plhash_glue.h>
#include <dlmalloc.h>
#include <thdpool.h>
#include <mem_berkdb.h>
Expand Down
2 changes: 1 addition & 1 deletion berkdb/db/db_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static const char revid[] = "$Id: db_dispatch.c,v 11.145 2003/09/10 20:31:18 ube
#include <stdio.h>
#endif

#include <plhash.h>
#include <plhash_glue.h>
#include "db_int.h"
#include "dbinc/db_page.h"
#include "dbinc/db_shash.h"
Expand Down
2 changes: 1 addition & 1 deletion berkdb/db/trigger_subscription.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stdlib.h>
#include <string.h>
#include <plhash.h>
#include <plhash_glue.h>
#include "dbinc/trigger_subscription.h"
#include <sys_wrap.h>

Expand Down
2 changes: 1 addition & 1 deletion berkdb/dbinc/db_dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#ifndef _DB_DISPATCH_H_
#define _DB_DISPATCH_H_

#include <plhash.h>
#include <plhash_glue.h>
/*
* Declarations and typedefs for the list of transaction IDs used during
* recovery. This is a generic list used to pass along whatever information
Expand Down
2 changes: 1 addition & 1 deletion berkdb/env/env_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static const char revid[] = "$Id: env_open.c,v 11.144 2003/09/13 18:39:34 bostic
#include <unistd.h>
#include <limits.h>

#include <plhash.h>
#include <plhash_glue.h>
#include "db_int.h"
#include "dbinc/crypto.h"
#include "dbinc/db_page.h"
Expand Down
2 changes: 1 addition & 1 deletion berkdb/log/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static const char revid[] = "$Id: log.c,v 11.133 2003/09/13 19:20:37 bostic Exp
#include "dbinc/txn.h"
#include <logmsg.h>

#include <plhash.h>
#include <plhash_glue.h>

static int __log_init __P((DB_ENV *, DB_LOG *));
static int __log_recover __P((DB_LOG *));
Expand Down
2 changes: 1 addition & 1 deletion berkdb/rep/rep_record.c
Original file line number Diff line number Diff line change
Expand Up @@ -4209,7 +4209,7 @@ logical_record_file_affinity(int rectype)

int gbl_processor_thd_poll;

#include <plhash.h>
#include <plhash_glue.h>

struct fuid_integer {
u_int8_t fuid[DB_FILE_ID_LEN];
Expand Down
15 changes: 5 additions & 10 deletions cdb2api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,24 @@ set_source_files_properties(
)

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/bbinc
${PROJECT_SOURCE_DIR}/util
${PROJECT_BINARY_DIR}/protobuf
${PROTOBUF-C_INCLUDE_DIR}
${OPENSSL_INCLUDE_DIR}
)

if (EXTRA_PLUGINS)
include(${EXTRA_PLUGINS}/cdb2api/CMakeLists.txt)
endif()

# common obj files for .so/.dylib and .a
add_definitions(-DDISABLE_HOSTADDR_CACHE)
add_definitions(-DSBUF2_SERVER=0)

if (COMDB2_BBCMAKE)
include(${EXTRA_PLUGINS}/cdb2api/cdb2api.cmake)
add_library(opencdb2api STATIC ${src})
add_dependencies(opencdb2api proto)
target_link_libraries(opencdb2api PUBLIC protobuf-c)
if(${CMAKE_SYSTEM_NAME} STREQUAL Linux)
target_link_libraries(opencdb2api PUBLIC libunwind)
endif()
comdb2_bb_target(opencdb2api)
add_dependencies(opencdb2api proto)
target_link_libraries(opencdb2api PUBLIC cdb2api)
comdb2_lib_target(opencdb2api)
else()

add_library(cdb2api STATIC ${src})
Expand Down
Loading

0 comments on commit 75dcd8e

Please sign in to comment.