svn commit: r211880 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Aug 27 14:10:25 UTC 2010
Author: pjd
Date: Fri Aug 27 14:10:25 2010
New Revision: 211880
URL: http://svn.freebsd.org/changeset/base/211880
Log:
Don't increase number synchronized bytes in case of an error.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
Modified:
head/sbin/hastd/primary.c
Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c Fri Aug 27 14:08:10 2010 (r211879)
+++ head/sbin/hastd/primary.c Fri Aug 27 14:10:25 2010 (r211880)
@@ -1699,15 +1699,14 @@ sync_thread(void *arg __unused)
strerror(hio->hio_errors[ncomp]));
goto free_queue;
}
+
+ synced += length;
free_queue:
mtx_lock(&range_lock);
rangelock_del(range_sync, offset, length);
if (range_regular_wait)
cv_signal(&range_regular_cond);
mtx_unlock(&range_lock);
-
- synced += length;
-
pjdlog_debug(2, "sync: (%p) Moving request to the free queue.",
hio);
QUEUE_INSERT2(hio, free);
More information about the svn-src-head
mailing list