mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
ovsdb-idl: Simplify usage of ovsdb_idl_run().
It makes client code simpler if ovsdb_idl_run() simply lets the caller know whether anything changed.
This commit is contained in:
@@ -231,9 +231,10 @@ ovsdb_idl_clear(struct ovsdb_idl *idl)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
bool
|
||||
ovsdb_idl_run(struct ovsdb_idl *idl)
|
||||
{
|
||||
unsigned int initial_change_seqno = idl->change_seqno;
|
||||
int i;
|
||||
|
||||
assert(!idl->txn);
|
||||
@@ -290,6 +291,8 @@ ovsdb_idl_run(struct ovsdb_idl *idl)
|
||||
}
|
||||
jsonrpc_msg_destroy(msg);
|
||||
}
|
||||
|
||||
return initial_change_seqno != idl->change_seqno;
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user