-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Expose some controller state fields for Tictac AAE and NextGenRepl CLI commands #4
base: openriak-3.4
Are you sure you want to change the base?
Conversation
39ef95d
to
e3d7ee7
Compare
src/aae_controller.erl
Outdated
]). | ||
|
||
-export([foldobjects_buildtrees/2, | ||
hash_clocks/2, | ||
wrapped_splitobjfun/1]). | ||
|
||
-export([get_key_store/1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you are not supposed to make the state of a gen_server
visible outside the gen_server
itself, one should not export functions that take that state as input argument.
This is possibly a remainder of an experiment, but I propose to drop those functions and in particular not exporting them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's wip at the moment. I should probably have taken it private until it's ready.
This PR adds getters for some controller state records, needed for TicTac AAE and NextGenRepl CLI commands (main body of work is in this PR in riak_kv).
Also, we add a new function,
aae_schedulenextrebuild/2
, which can be used to trigger a tree rebuild, at a specified delay.