[DRBD-cvs] svn commit by lars - r2635 - trunk/drbd - Simon
correctly noticed that we may be in PausedSyncX i
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Tue Dec 19 17:18:02 CET 2006
Author: lars
Date: 2006-12-19 17:18:01 +0100 (Tue, 19 Dec 2006)
New Revision: 2635
Modified:
trunk/drbd/drbd_worker.c
Log:
Simon correctly noticed that we may be in PausedSyncX in resync_finished
Modified: trunk/drbd/drbd_worker.c
===================================================================
--- trunk/drbd/drbd_worker.c 2006-12-12 15:20:02 UTC (rev 2634)
+++ trunk/drbd/drbd_worker.c 2006-12-19 16:18:01 UTC (rev 2635)
@@ -402,7 +402,8 @@
if (mdev->rs_failed) {
INFO(" %lu failed blocks\n",mdev->rs_failed);
- if (mdev->state.conn == SyncTarget) {
+ if (mdev->state.conn == SyncTarget ||
+ mdev->state.connn == PausedSyncT) {
dstate = Inconsistent;
pdstate = UpToDate;
} else {
@@ -412,7 +413,8 @@
} else {
dstate = pdstate = UpToDate;
- if ( mdev->state.conn == SyncTarget) {
+ if (mdev->state.conn == SyncTarget ||
+ mdev->state.connn == PausedSyncT) {
if( mdev->p_uuid ) {
int i;
for ( i=Bitmap ; i<=History_end ; i++ ) {
More information about the drbd-cvs
mailing list