move native network server into servers/native
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@3782 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
cea3ab3e6b
commit
809082afb4
27 changed files with 13 additions and 18 deletions
|
@ -11,7 +11,7 @@ Project(Stasis)
|
||||||
|
|
||||||
SET(PACKAGE_VERSION 1)
|
SET(PACKAGE_VERSION 1)
|
||||||
|
|
||||||
SUBDIRS(test util benchmarks main)
|
SUBDIRS(test util benchmarks servers/native)
|
||||||
|
|
||||||
# Main decisions
|
# Main decisions
|
||||||
SET(BUILD_SHARED_LIBS ON)
|
SET(BUILD_SHARED_LIBS ON)
|
||||||
|
@ -80,7 +80,5 @@ ENDIF ( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" )
|
||||||
|
|
||||||
#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
||||||
IF ( HAVE_STASIS )
|
IF ( HAVE_STASIS )
|
||||||
ADD_LIBRARY(blsm requestDispatch.cpp simpleServer.cpp logserver.cpp blsm.cpp diskTreeComponent.cpp memTreeComponent.cpp datapage.cpp merger.cpp tuplemerger.cpp mergeStats.cpp mergeManager.cpp bloomFilter.c)
|
ADD_LIBRARY(blsm blsm.cpp diskTreeComponent.cpp memTreeComponent.cpp datapage.cpp merger.cpp tuplemerger.cpp mergeStats.cpp mergeManager.cpp bloomFilter.c)
|
||||||
ENDIF ( HAVE_STASIS )
|
ENDIF ( HAVE_STASIS )
|
||||||
|
|
||||||
ADD_LIBRARY(blsm_client tcpclient.cpp)
|
|
||||||
|
|
|
@ -17,17 +17,17 @@
|
||||||
*
|
*
|
||||||
* Author: sears
|
* Author: sears
|
||||||
*/
|
*/
|
||||||
#include <network.h>
|
|
||||||
|
|
||||||
#ifndef _DATATUPLE_H_
|
#ifndef _DATATUPLE_H_
|
||||||
#define _DATATUPLE_H_
|
#define _DATATUPLE_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
typedef unsigned char byte;
|
#include <stasis/common.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
typedef uint32_t len_t ;
|
||||||
|
static const len_t DELETE = ((len_t)0) - 1;
|
||||||
|
|
||||||
typedef struct datatuple
|
typedef struct datatuple
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <stasis/common.h>
|
#include <stasis/common.h>
|
||||||
#include <stasis/util/time.h>
|
#include <stasis/util/time.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <logserver.h>
|
#include <blsm.h>
|
||||||
#include <regionAllocator.h>
|
#include <regionAllocator.h>
|
||||||
|
|
||||||
BEGIN_C_DECLS
|
BEGIN_C_DECLS
|
|
@ -20,15 +20,15 @@
|
||||||
* Author: sears
|
* Author: sears
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../tcpclient.h"
|
#include "..tcpclient.h"
|
||||||
#include "../network.h"
|
#include "../network.h"
|
||||||
#include "../datatuple.h"
|
#include "datatuple.h"
|
||||||
|
|
||||||
void usage(char * argv[]) {
|
void usage(char * argv[]) {
|
||||||
fprintf(stderr, "usage %s numthreads threadopcount [host [port]]\n", argv[0]);
|
fprintf(stderr, "usage %s numthreads threadopcount [host [port]]\n", argv[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "../util/util_main.h"
|
#include "../servers/native/util/util_main.h"
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
int threadopcount;
|
int threadopcount;
|
||||||
|
|
|
@ -32,9 +32,6 @@ typedef unsigned char byte;
|
||||||
|
|
||||||
typedef uint8_t network_op_t;
|
typedef uint8_t network_op_t;
|
||||||
|
|
||||||
typedef uint32_t len_t ;
|
|
||||||
static const len_t DELETE = ((len_t)0) - 1;
|
|
||||||
|
|
||||||
#define LOGSTORE_NODELAY
|
#define LOGSTORE_NODELAY
|
||||||
|
|
||||||
#include <datatuple.h>
|
#include <datatuple.h>
|
|
@ -32,8 +32,8 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "../tcpclient.h"
|
#include "../servers/native/tcpclient.h"
|
||||||
#include "../network.h"
|
#include "../servers/native/network.h"
|
||||||
|
|
||||||
#include "check_util.h"
|
#include "check_util.h"
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "../tcpclient.h"
|
#include "../servers/native/tcpclient.h"
|
||||||
#include "../network.h"
|
#include "../servers/native/network.h"
|
||||||
|
|
||||||
#include "check_util.h"
|
#include "check_util.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue