git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovsdb: Fix commit to disk of rows added to a table with all-default values.
[sliver-openvswitch.git]
/
ovsdb
/
file.c
diff --git
a/ovsdb/file.c
b/ovsdb/file.c
index
716ea89
..
31086af
100644
(file)
--- a/
ovsdb/file.c
+++ b/
ovsdb/file.c
@@
-254,7
+254,7
@@
ovsdb_file_replica_change_cb(const struct ovsdb_row *old,
} else {
struct shash_node *node;
- row =
NULL
;
+ row =
old ? NULL : json_object_create()
;
SHASH_FOR_EACH (node, &new->table->schema->columns) {
const struct ovsdb_column *column = node->data;
const struct ovsdb_type *type = &column->type;