[sheepdog] [PATCH] recovery: fix log priority and output
Liu Yuan
namei.unix at gmail.com
Wed Aug 14 06:54:02 CEST 2013
On Tue, Aug 13, 2013 at 06:55:28PM +0900, MORITA Kazutaka wrote:
> From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
>
> This is not an error. sd_info() is better.
>
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
> sheep/recovery.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sheep/recovery.c b/sheep/recovery.c
> index 91c1a10..1b5adc1 100644
> --- a/sheep/recovery.c
> +++ b/sheep/recovery.c
> @@ -619,8 +619,8 @@ static void recover_object_main(struct work *work)
> wakeup_requests_on_oid(row->oid);
> rinfo->done++;
>
> - sd_err("done:%"PRIu64" count:%"PRIu64", oid:%"PRIx64, rinfo->done,
> - rinfo->count, row->oid);
> + sd_info("object %"PRIx64" is recovered (%"PRIu64"/%"PRIu64")", row->oid,
> + rinfo->done, rinfo->count);
>
> if (rinfo->done < rinfo->count) {
> recover_next_object(rinfo);
> --
> 1.7.9.5
>
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog
Applied thanks
Yuan
More information about the sheepdog
mailing list