git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72c6edc
)
ovsdb-idl: New function to obtain the current transaction from any row.
author
Ben Pfaff
<blp@nicira.com>
Wed, 9 Dec 2009 01:14:56 +0000
(17:14 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 9 Dec 2009 01:14:56 +0000
(17:14 -0800)
lib/ovsdb-idl-provider.h
patch
|
blob
|
history
lib/ovsdb-idl.c
patch
|
blob
|
history
diff --git
a/lib/ovsdb-idl-provider.h
b/lib/ovsdb-idl-provider.h
index
cf6c486
..
8bc6f3e
100644
(file)
--- a/
lib/ovsdb-idl-provider.h
+++ b/
lib/ovsdb-idl-provider.h
@@
-84,4
+84,6
@@
struct ovsdb_idl_row *ovsdb_idl_txn_insert(
struct ovsdb_idl_txn *,
const struct ovsdb_idl_table_class *);
+struct ovsdb_idl_txn *ovsdb_idl_txn_get(const struct ovsdb_idl_row *);
+
#endif /* ovsdb-idl-provider.h */
diff --git
a/lib/ovsdb-idl.c
b/lib/ovsdb-idl.c
index
511ae91
..
9bb1201
100644
(file)
--- a/
lib/ovsdb-idl.c
+++ b/
lib/ovsdb-idl.c
@@
-1222,3
+1222,11
@@
ovsdb_idl_txn_process_reply(struct ovsdb_idl *idl,
ovsdb_idl_txn_complete(txn, status);
return true;
}
+
+struct ovsdb_idl_txn *
+ovsdb_idl_txn_get(const struct ovsdb_idl_row *row)
+{
+ struct ovsdb_idl_txn *txn = row->table->idl->txn;
+ assert(txn != NULL);
+ return txn;
+}