mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
Rusty Russell
cc678d572f
eventscript: use an array rather than a linked list of scripts
This brings us closer to the wire format, by using a simple array and a 'current' iterator. The downside is that a 'struct ctdb_script' is no longer a talloc object: the state must be passed to our log fn, and the current script extracted with &state->scripts->scripts[state->current]. The wackiness of marshalling is simplified, and as a bonus, we can distinguish between an empty event directory (state->scripts->num_scripts == 0) and and error (state->scripts == NULL). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 76e8bdc11b953398ce8850de57aa51f30cb46bff)
Description
https://gitlab.com/samba-team/samba is the Official GitLab mirror of https://git.samba.org/samba.git -- Merge requests should be made on GitLab (not on GitHub)
453 MiB
Languages
C
76.4%
Python
18.8%
Shell
2.8%
Perl
1.4%
Rust
0.3%
Other
0.1%