Skip to content

Commit

Permalink
ovsdb-idl: Add comment.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Ilya Maximets <[email protected]>
  • Loading branch information
blp committed Dec 19, 2020
1 parent 47da7fa commit 2653155
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ovsdb-idl.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,14 @@ ovsdb_idl_destroy(struct ovsdb_idl *idl)
}
}

/* By default, or if 'leader_only' is true, when 'idl' connects to a clustered
* database, the IDL will avoid servers other than the cluster leader. This
* ensures that any data that it reads and reports is up-to-date. If
* 'leader_only' is false, the IDL will accept any server in the cluster, which
* means that for read-only transactions it can report and act on stale data
* (transactions that modify the database are always serialized even with false
* 'leader_only'). Refer to Understanding Cluster Consistency in ovsdb(7) for
* more information. */
void
ovsdb_idl_set_leader_only(struct ovsdb_idl *idl, bool leader_only)
{
Expand Down

0 comments on commit 2653155

Please sign in to comment.