Skip to content

Commit

Permalink
move native network server into servers/native
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@3782 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
  • Loading branch information
sears committed Feb 23, 2012
1 parent cea3ab3 commit 809082a
Show file tree
Hide file tree
Showing 27 changed files with 13 additions and 18 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
6 changes: 3 additions & 3 deletions datatuple.h
Expand Up @@ -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
{
Expand Down
File renamed without changes.
Expand Up @@ -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
Expand Down
Expand Up @@ -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;

Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions network.h → servers/native/network.h
Expand Up @@ -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>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test/check_tcpbulkinsert.cpp
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions test/check_tcpclient.cpp
Expand Up @@ -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"

Expand Down

0 comments on commit 809082a

Please sign in to comment.