2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

ovsdb-idl.c: Remove meaningless MAX().

In the else condition, it is already ensured that index >= idl->min_index.
So the MAX() is confusing and misleading here.

Signed-off-by: Han Zhou <hzhou8@ebay.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Han Zhou
2019-03-20 22:48:22 -07:00
committed by Ben Pfaff
parent 6a7bceaac3
commit b80675c6b3

View File

@@ -1888,7 +1888,7 @@ ovsdb_idl_check_server_db(struct ovsdb_idl *idl)
VLOG_WARN("%s: clustered database server has stale data; "
"trying another server", server_name);
} else {
idl->min_index = MAX(idl->min_index, index);
idl->min_index = index;
ok = true;
}
} else {