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:
sears 2012-02-23 00:10:54 +00:00
parent cea3ab3e6b
commit 809082afb4
27 changed files with 13 additions and 18 deletions

View file

@ -11,7 +11,7 @@ Project(Stasis)
SET(PACKAGE_VERSION 1)
SUBDIRS(test util benchmarks main)
SUBDIRS(test util benchmarks servers/native)
# Main decisions
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)
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 )
ADD_LIBRARY(blsm_client tcpclient.cpp)

View file

@ -17,17 +17,17 @@
*
* Author: sears
*/
#include <network.h>
#ifndef _DATATUPLE_H_
#define _DATATUPLE_H_
#include <string>
#include <stdlib.h>
typedef unsigned char byte;
#include <stasis/common.h>
#include <cstring>
#include <assert.h>
typedef uint32_t len_t ;
static const len_t DELETE = ((len_t)0) - 1;
typedef struct datatuple
{

View file

@ -21,7 +21,7 @@
#include <stasis/common.h>
#include <stasis/util/time.h>
#include <stdio.h>
#include <logserver.h>
#include <blsm.h>
#include <regionAllocator.h>
BEGIN_C_DECLS

View file

@ -20,15 +20,15 @@
* Author: sears
*/
#include "../tcpclient.h"
#include "..tcpclient.h"
#include "../network.h"
#include "../datatuple.h"
#include "datatuple.h"
void usage(char * argv[]) {
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>
int threadopcount;

View file

@ -32,9 +32,6 @@ typedef unsigned char byte;
typedef uint8_t network_op_t;
typedef uint32_t len_t ;
static const len_t DELETE = ((len_t)0) - 1;
#define LOGSTORE_NODELAY
#include <datatuple.h>

View file

@ -32,8 +32,8 @@
#include <time.h>
#include <sys/types.h>
#include "../tcpclient.h"
#include "../network.h"
#include "../servers/native/tcpclient.h"
#include "../servers/native/network.h"
#include "check_util.h"

View file

@ -30,8 +30,8 @@
#include <time.h>
#include <sys/types.h>
#include "../tcpclient.h"
#include "../network.h"
#include "../servers/native/tcpclient.h"
#include "../servers/native/network.h"
#include "check_util.h"