Skip to content

Commit

Permalink
Merge pull request #8 from OpenRiak/mas-o34-upstream.d34
Browse files Browse the repository at this point in the history
Mas o34 upstream.d34
  • Loading branch information
martinsumner authored Dec 3, 2024
2 parents b9643d4 + 9843a31 commit 539c2ab
Show file tree
Hide file tree
Showing 30 changed files with 5,311 additions and 3,456 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ cover
cover_*
.eqc-info
leveled_data/*
elp
25 changes: 15 additions & 10 deletions include/leveled.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
%%% Non-configurable startup defaults
%%%============================================================================
-define(MAX_SSTSLOTS, 256).
-define(MAX_MERGEBELOW, 24).
-define(LOADING_PAUSE, 1000).
-define(LOADING_BATCH, 1000).
-define(CACHE_SIZE_JITTER, 25).
Expand Down Expand Up @@ -70,6 +71,15 @@
%% Inker key type used for tombstones
%%%============================================================================

%%%============================================================================
%%% Helper Function
%%%============================================================================

-define(IS_DEF(Attribute), Attribute =/= undefined).

-if(?OTP_RELEASE < 26).
-type dynamic() :: any().
-endif.

%%%============================================================================
%%% Shared records
Expand All @@ -79,13 +89,6 @@
is_basement = false :: boolean(),
timestamp :: integer()}).

-record(manifest_entry,
{start_key :: tuple() | undefined,
end_key :: tuple() | undefined,
owner :: pid()|list(),
filename :: string() | undefined,
bloom = none :: leveled_ebloom:bloom() | none}).

-record(cdb_options,
{max_size :: pos_integer() | undefined,
max_count :: pos_integer() | undefined,
Expand All @@ -107,7 +110,8 @@
press_level = ?COMPRESSION_LEVEL :: non_neg_integer(),
log_options = leveled_log:get_opts()
:: leveled_log:log_options(),
max_sstslots = ?MAX_SSTSLOTS :: pos_integer(),
max_sstslots = ?MAX_SSTSLOTS :: pos_integer()|infinity,
max_mergebelow = ?MAX_MERGEBELOW :: pos_integer()|infinity,
pagecache_level = ?SST_PAGECACHELEVEL_NOLOOKUP
:: pos_integer(),
monitor = {no_monitor, 0}
Expand All @@ -129,14 +133,15 @@
singlefile_compactionperc :: float()|undefined,
maxrunlength_compactionperc :: float()|undefined,
score_onein = 1 :: pos_integer(),
snaptimeout_long :: pos_integer() | undefined,
snaptimeout_long = 60 :: pos_integer(),
monitor = {no_monitor, 0}
:: leveled_monitor:monitor()}).

-record(penciller_options,
{root_path :: string() | undefined,
sst_options = #sst_options{} :: #sst_options{},
max_inmemory_tablesize :: integer() | undefined,
max_inmemory_tablesize = ?MIN_PCL_CACHE_SIZE
:: pos_integer(),
start_snapshot = false :: boolean(),
snapshot_query,
bookies_pid :: pid() | undefined,
Expand Down
7 changes: 6 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

{eunit_opts, [verbose]}.

{project_plugins, [
{eqwalizer_rebar3, {git_subdir, "https://github.com/OpenRiak/eqwalizer.git", {branch, "openriak-3.4"}, "eqwalizer_rebar3"}}
]}.

{profiles,
[{eqc, [{deps, [meck, fqc]},
{erl_opts, [debug_info, {d, 'EQC'}]},
Expand All @@ -28,7 +32,8 @@

{deps, [
{lz4, ".*", {git, "https://github.com/OpenRiak/erlang-lz4", {branch, "openriak-3.4"}}},
{zstd, ".*", {git, "https://github.com/OpenRiak/zstd-erlang", {branch, "openriak-3.2"}}}
{zstd, ".*", {git, "https://github.com/OpenRiak/zstd-erlang", {branch, "openriak-3.2"}}},
{eqwalizer_support, {git_subdir, "https://github.com/OpenRiak/eqwalizer.git", {branch, "openriak-3.4"}, "eqwalizer_support"}}
]}.

{ct_opts, [{dir, ["test/end_to_end"]}]}.
Loading

0 comments on commit 539c2ab

Please sign in to comment.