Skip to content

Commit

Permalink
ovsdb-idl.c: Remove meaningless MAX().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hzhou8 authored and blp committed Mar 26, 2019
1 parent 6a7bcea commit b80675c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ovsdb-idl.c
Expand Up @@ -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 {
Expand Down

0 comments on commit b80675c

Please sign in to comment.