2
0
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:
Ben Pfaff
2010-06-09 15:18:17 -07:00
parent 81857c785e
commit 4ea21243f5
5 changed files with 29 additions and 45 deletions

View File

@@ -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