[sheepdog] [PATCH 2/9] sheep: clean up log_current_epoch call
Liu Yuan
namei.unix at gmail.com
Thu Jul 11 08:39:15 CEST 2013
On Thu, Jul 11, 2013 at 01:33:58PM +0900, MORITA Kazutaka wrote:
> From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
>
> This moves epoch incrementation into log_current_epoch() to simplify
> codes, and adds a check of the return value of the function.
>
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
> sheep/group.c | 40 ++++++++++++++++++++++++----------------
> sheep/ops.c | 3 +--
> 2 files changed, 25 insertions(+), 18 deletions(-)
>
> diff --git a/sheep/group.c b/sheep/group.c
> index 473c8d8..0043929 100644
> --- a/sheep/group.c
> +++ b/sheep/group.c
> @@ -590,15 +590,18 @@ int log_current_epoch(void)
Then it is better to name it as log_and_inc_epoch
Thanks
Yuan
More information about the sheepdog
mailing list