mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-07 00:55:21 +00:00
20026163a4
* 2i AAE test * term_regex 2i filter tests * pagination sort tests * add mixed cluster 2i test
21 lines
571 B
Erlang
21 lines
571 B
Erlang
-module(riak_object_intercepts).
|
|
-export([skippable_index_specs/1,
|
|
skippable_diff_index_specs/2]).
|
|
-include("intercept.hrl").
|
|
|
|
skippable_index_specs(Obj) ->
|
|
case app_helper:get_env(riak_kv, skip_index_specs, false) of
|
|
false ->
|
|
riak_object_orig:index_specs_orig(Obj);
|
|
true ->
|
|
[]
|
|
end.
|
|
|
|
skippable_diff_index_specs(Obj, OldObj) ->
|
|
case app_helper:get_env(riak_kv, skip_index_specs, false) of
|
|
false ->
|
|
riak_object_orig:diff_index_specs_orig(Obj, OldObj);
|
|
true ->
|
|
[]
|
|
end.
|