diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | lib/ovsdb-idl-provider.h | 3 | ||||
-rw-r--r-- | lib/ovsdb-idl.c | 12 |
3 files changed, 10 insertions, 6 deletions
@@ -58,6 +58,7 @@ Duffie Cooley dcooley@nicira.com Ed Maste emaste@freebsd.org Ed Swierk eswierk@skyportsystems.com Edouard Bourguignon madko@linuxed.net +Aymerich Edward edward.aymerich@hpe.com Edward Tomasz NapieraĆa trasz@freebsd.org Eitan Eliahu eliahue@vmware.com Eohyung Lee liquidnuker@gmail.com diff --git a/lib/ovsdb-idl-provider.h b/lib/ovsdb-idl-provider.h index 3dddf6956..099535e8a 100644 --- a/lib/ovsdb-idl-provider.h +++ b/lib/ovsdb-idl-provider.h @@ -61,7 +61,8 @@ struct ovsdb_idl_table_class { struct ovsdb_idl_table { const struct ovsdb_idl_table_class *class; unsigned char *modes; /* OVSDB_IDL_* bitmasks, indexed by column. */ - bool need_table; /* Monitor table even if no columns? */ + bool need_table; /* Monitor table even if no columns are selected + * for replication. */ struct shash columns; /* Contains "const struct ovsdb_idl_column *"s. */ struct hmap rows; /* Contains "struct ovsdb_idl_row"s. */ struct ovsdb_idl *idl; /* Containing idl. */ diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 588582a5b..8f75bf097 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -557,11 +557,13 @@ ovsdb_idl_add_column(struct ovsdb_idl *idl, } /* Ensures that the table with class 'tc' will be replicated on 'idl' even if - * no columns are selected for replication. This can be useful because it - * allows 'idl' to keep track of what rows in the table actually exist, which - * in turn allows columns that reference the table to have accurate contents. - * (The IDL presents the database with references to rows that do not exist - * removed.) + * no columns are selected for replication. Just the necessary data for table + * references will be replicated (the UUID of the rows, for instance), any + * columns not selected for replication will remain unreplicated. + * This can be useful because it allows 'idl' to keep track of what rows in the + * table actually exist, which in turn allows columns that reference the table + * to have accurate contents. (The IDL presents the database with references to + * rows that do not exist removed.) * * This function is only useful if 'monitor_everything_by_default' was false in * the call to ovsdb_idl_create(). This function should be called between |