Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345941
b: refs/heads/master
c: 0916e0e
h: refs/heads/master
i:
  345939: 26b7221
v: v3
  • Loading branch information
Andreas Gruenbacher authored and Philipp Reisner committed Nov 8, 2012
1 parent 90c2f88 commit c2759a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0829f5edf37cb1731e97066288f520de85b7b5e5
refs/heads/master: 0916e0e308716387f16462f66b53c9128587fd0b
2 changes: 1 addition & 1 deletion trunk/drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ static void prepare_header95(struct p_header95 *h, enum drbd_packet cmd, int siz
static void _prepare_header(struct drbd_tconn *tconn, int vnr, struct p_header *h,
enum drbd_packet cmd, int size)
{
if (tconn->agreed_pro_version >= 100 || size > DRBD_MAX_SIZE_H80_PACKET)
if (tconn->agreed_pro_version >= 95)
prepare_header95(&h->h95, cmd, size);
else
prepare_header80(&h->h80, cmd, size);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,9 +819,9 @@ static int drbd_connect(struct drbd_tconn *tconn)
return -2;

clear_bit(DISCARD_CONCURRENT, &tconn->flags);
tconn->agreed_pro_version = 99;
/* agreed_pro_version must be smaller than 100 so we send the old
header (h80) in the first packet and in the handshake packet. */

/* Assume that the peer only understands protocol 80 until we know better. */
tconn->agreed_pro_version = 80;

sock = NULL;
msock = NULL;
Expand Down

0 comments on commit c2759a8

Please sign in to comment.