Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97af09d5 authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbd: Dropped wrong clause to generate new current UUIDs



Looks like a remainder from long ago.

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent accdbcc5
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1239,11 +1239,6 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
	}

	if (ns.pdsk < D_INCONSISTENT && get_ldev(mdev)) {
		if (ns.peer == R_PRIMARY && mdev->ldev->md.uuid[UI_BITMAP] == 0) {
			drbd_uuid_new_current(mdev);
			drbd_send_uuids(mdev);
		}

		/* D_DISKLESS Peer becomes secondary */
		if (os.peer == R_PRIMARY && ns.peer == R_SECONDARY)
			/* We may still be Primary ourselves.