[DRBD-cvs] drbd by lars; do nothing on NegAck for now. decreasing...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Mon, 7 Jun 2004 16:05:10 +0200 (CEST)
DRBD CVS committal
Author : lars
Module : drbd
Dir : drbd/drbd
Modified Files:
Tag: rel-0_7-branch
drbd_receiver.c
Log Message:
do nothing on NegAck for now. decreasing counters here seem to be an error
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/drbd_receiver.c,v
retrieving revision 1.97.2.167
retrieving revision 1.97.2.168
diff -u -3 -r1.97.2.167 -r1.97.2.168
--- drbd_receiver.c 5 Jun 2004 09:06:50 -0000 1.97.2.167
+++ drbd_receiver.c 7 Jun 2004 14:05:05 -0000 1.97.2.168
@@ -1719,6 +1719,11 @@
if (DRBD_ratelimit(5*HZ,5))
WARN("Got NegAck packet. Peer is in troubles?\n");
+ /* do nothing here.
+ * we expect to get a "report param" on the data socket soon,
+ * and will do the cleanup then and there.
+ */
+#if 0
if(is_syncer_blk(mdev,p->block_id)) {
dec_rs_pending(mdev,HERE);
} else {
@@ -1727,6 +1732,7 @@
D_ASSERT(mdev->conf.wire_protocol != DRBD_PROT_A);
dec_ap_pending(mdev,HERE);
}
+#endif
return TRUE;
}