copy: quiet potential warning flood

This commit is contained in:
Thomas Schoebel-Theuer 2014-04-01 13:34:09 +02:00 committed by Thomas Schoebel-Theuer
parent 90a2f186b8
commit ed70d7ae2c
1 changed files with 5 additions and 5 deletions

View File

@ -450,7 +450,7 @@ restart:
status = _make_mref(brick, index, 0, NULL, pos, brick->copy_end, READ, brick->verify_mode ? 2 : 0); status = _make_mref(brick, index, 0, NULL, pos, brick->copy_end, READ, brick->verify_mode ? 2 : 0);
if (unlikely(status < 0)) { if (unlikely(status < 0)) {
MARS_WRN("status = %d\n", status); MARS_DBG("status = %d\n", status);
progress = status; progress = status;
break; break;
} }
@ -465,7 +465,7 @@ restart:
case COPY_STATE_START2: case COPY_STATE_START2:
status = _make_mref(brick, index, 1, NULL, pos, brick->copy_end, READ, 2); status = _make_mref(brick, index, 1, NULL, pos, brick->copy_end, READ, 2);
if (unlikely(status < 0)) { if (unlikely(status < 0)) {
MARS_WRN("status = %d\n", status); MARS_DBG("status = %d\n", status);
progress = status; progress = status;
break; break;
} }
@ -528,7 +528,7 @@ restart:
_clear_mref(brick, index, 0); _clear_mref(brick, index, 0);
status = _make_mref(brick, index, 0, NULL, pos, brick->copy_end, READ, 0); status = _make_mref(brick, index, 0, NULL, pos, brick->copy_end, READ, 0);
if (unlikely(status < 0)) { if (unlikely(status < 0)) {
MARS_WRN("status = %d\n", status); MARS_DBG("status = %d\n", status);
progress = status; progress = status;
next_state = COPY_STATE_RESET; next_state = COPY_STATE_RESET;
break; break;
@ -567,7 +567,7 @@ restart:
/* start writeout */ /* start writeout */
status = _make_mref(brick, index, 1, mref0->ref_data, pos, pos + mref0->ref_len, WRITE, 0); status = _make_mref(brick, index, 1, mref0->ref_data, pos, pos + mref0->ref_len, WRITE, 0);
if (unlikely(status < 0)) { if (unlikely(status < 0)) {
MARS_WRN("status = %d\n", status); MARS_DBG("status = %d\n", status);
progress = status; progress = status;
next_state = COPY_STATE_RESET; next_state = COPY_STATE_RESET;
break; break;
@ -621,7 +621,7 @@ idle:
if (unlikely(progress < 0)) { if (unlikely(progress < 0)) {
if (st->error >= 0) if (st->error >= 0)
st->error = progress; st->error = progress;
MARS_WRN("progress = %d\n", progress); MARS_DBG("progress = %d\n", progress);
progress = 0; progress = 0;
_clash(brick); _clash(brick);
} else if (do_restart) { } else if (do_restart) {