diff options
author | Ben Pfaff <blp@nicira.com> | 2012-09-05 10:35:20 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-09-05 10:35:20 -0700 |
commit | 341c4e59f50a842a2974d06e448a57af372a7edd (patch) | |
tree | 35f92730f035ab655e76334bdb19f771c042d10a /lib/ovsdb-idl-provider.h | |
parent | c22c56bd746352f5c70a0d99bb3f548d03cfd105 (diff) |
ovsdb: Enforce immutability of immutable columns.
OVSDB has always had the ability to mark a column as "immutable", so that
its value cannot be changed in a given row after that row is initially
inserted. However, we discovered recently that ovsdb-server has never
enforced this constraint. This commit implements enforcement.
Reported-by: Paul Ingram <paul@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
Diffstat (limited to 'lib/ovsdb-idl-provider.h')
-rw-r--r-- | lib/ovsdb-idl-provider.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ovsdb-idl-provider.h b/lib/ovsdb-idl-provider.h index 546acbb8..7ea5ce69 100644 --- a/lib/ovsdb-idl-provider.h +++ b/lib/ovsdb-idl-provider.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2009, 2010, 2011 Nicira, Inc. +/* Copyright (c) 2009, 2010, 2011, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,7 @@ struct ovsdb_idl_row { struct ovsdb_idl_column { char *name; struct ovsdb_type type; + bool mutable; void (*parse)(struct ovsdb_idl_row *, const struct ovsdb_datum *); void (*unparse)(struct ovsdb_idl_row *); }; |