Formatting improvements
This commit is contained in:
parent
63bae181e3
commit
a2f863804d
@ -214,7 +214,6 @@ register(Alias) ->
|
||||
default_alias() ->
|
||||
rocksdb_copies.
|
||||
|
||||
|
||||
%% ----------------------------------------------------------------------------
|
||||
%% DEBUG API
|
||||
%% ----------------------------------------------------------------------------
|
||||
@ -676,7 +675,8 @@ lookup(Alias, Tab, Key) ->
|
||||
Enc = encode_key(Key),
|
||||
{Ref, Type} = call(Alias, Tab, get_ref),
|
||||
case Type of
|
||||
bag -> lookup_bag(Ref, Key, Enc, keypos(Tab));
|
||||
bag ->
|
||||
lookup_bag(Ref, Key, Enc, keypos(Tab));
|
||||
_ ->
|
||||
case ?rocksdb:get(Ref, Enc, []) of
|
||||
{ok, EncVal} ->
|
||||
@ -1208,8 +1208,7 @@ do_insert(K, V, #st{ets = Ets, ref = Ref, type = bag, maintain_size = true} = St
|
||||
do_insert(K, V, #st{ref = Ref, maintain_size = false} = St) ->
|
||||
return_catch(fun() -> db_put(Ref, K, V, [], St) end);
|
||||
do_insert(K, V, #st{ets = Ets, ref = Ref, maintain_size = true} = St) ->
|
||||
IsNew =
|
||||
case ?rocksdb:get(Ref, K, []) of
|
||||
IsNew = case ?rocksdb:get(Ref, K, []) of
|
||||
{ok, _} ->
|
||||
false;
|
||||
_ ->
|
||||
@ -1292,8 +1291,7 @@ do_delete(Key, #st{ets = Ets, ref = Ref, maintain_size = true} = St) ->
|
||||
end.
|
||||
|
||||
do_delete_bag(Sz, Key, Ref, TSz, St) ->
|
||||
Found =
|
||||
with_iterator(
|
||||
Found = with_iterator(
|
||||
Ref, fun(I) ->
|
||||
do_delete_bag_(Sz, Key, ?rocksdb:iterator_move(I, Key),
|
||||
Ref, I)
|
||||
@ -1453,8 +1451,7 @@ do_select(Ref, Tab, _Type, MS, AccKeys, Limit) when is_boolean(AccKeys) ->
|
||||
i_do_select(I, #sel{keypat = Pfx,
|
||||
compiled_ms = MS,
|
||||
limit = Limit} = Sel, AccKeys, Acc) ->
|
||||
StartKey =
|
||||
case Pfx of
|
||||
StartKey = case Pfx of
|
||||
<<>> ->
|
||||
<<?DATA_START>>;
|
||||
_ ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user