summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mem3.hrl2
-rw-r--r--src/mem3_cache.erl1
-rw-r--r--src/mem3_httpd.erl1
-rw-r--r--src/mem3_nodes.erl1
-rw-r--r--src/mem3_sync.erl1
-rw-r--r--src/mem3_util.erl1
6 files changed, 5 insertions, 2 deletions
diff --git a/include/mem3.hrl b/include/mem3.hrl
index 346d3e3e..f6584f19 100644
--- a/include/mem3.hrl
+++ b/include/mem3.hrl
@@ -1,5 +1,3 @@
--include_lib("couch/include/couch_db.hrl").
-
-record(shard, {name, node, dbname, range, ref}).
%% types
diff --git a/src/mem3_cache.erl b/src/mem3_cache.erl
index 38cc57ef..2a29ca4c 100644
--- a/src/mem3_cache.erl
+++ b/src/mem3_cache.erl
@@ -8,6 +8,7 @@
-record(state, {changes_pid}).
-include("mem3.hrl").
+-include_lib("couch/include/couch_db.hrl").
start_link() ->
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
diff --git a/src/mem3_httpd.erl b/src/mem3_httpd.erl
index 2b29b488..4b4f8496 100644
--- a/src/mem3_httpd.erl
+++ b/src/mem3_httpd.erl
@@ -4,6 +4,7 @@
%% includes
-include("mem3.hrl").
+-include_lib("couch/include/couch_db.hrl").
handle_membership_req(#httpd{method='GET',
diff --git a/src/mem3_nodes.erl b/src/mem3_nodes.erl
index 9b3f32f3..0214ed03 100644
--- a/src/mem3_nodes.erl
+++ b/src/mem3_nodes.erl
@@ -6,6 +6,7 @@
-export([start_link/0, get_nodelist/0]).
-include("mem3.hrl").
+-include_lib("couch/include/couch_db.hrl").
-record(state, {changes_pid, update_seq, nodes}).
diff --git a/src/mem3_sync.erl b/src/mem3_sync.erl
index f011b008..140675f7 100644
--- a/src/mem3_sync.erl
+++ b/src/mem3_sync.erl
@@ -6,6 +6,7 @@
-export([start_link/0, get_active/0, get_queue/0, push/2, remove_node/1]).
-include("mem3.hrl").
+-include_lib("couch/include/couch_db.hrl").
-record(state, {
active = [],
diff --git a/src/mem3_util.erl b/src/mem3_util.erl
index aa43fd88..f6fad76a 100644
--- a/src/mem3_util.erl
+++ b/src/mem3_util.erl
@@ -7,6 +7,7 @@
-define(RINGTOP, 2 bsl 31). % CRC32 space
-include("mem3.hrl").
+-include_lib("couch/include/couch_db.hrl").
hash(Item) when is_binary(Item) ->
erlang:crc32(Item);