|
|
@@ -156,8 +156,8 @@ apply_stream(DB, NodeStream0, Stream0, N) ->
|
|
|
apply_stream(DB, NodeStream, Stream, N + 1);
|
|
|
[add_generation | Stream] ->
|
|
|
%% FIXME:
|
|
|
- [_Node | NodeStream] = emqx_utils_stream:next(NodeStream0),
|
|
|
- %% add_generation(Node, DB),
|
|
|
+ [Node | NodeStream] = emqx_utils_stream:next(NodeStream0),
|
|
|
+ ?ON(Node, emqx_ds:add_generation(DB)),
|
|
|
apply_stream(DB, NodeStream, Stream, N);
|
|
|
[{Node, Operation, Arg} | Stream] when
|
|
|
Operation =:= join_db_site; Operation =:= leave_db_site; Operation =:= assign_db_sites
|