X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Ffile.c;h=c51f75290040d817076ab7289bb443db0231a730;hb=7011767c3497ed1dc05f2bdee96a09b4bc050439;hp=9eea460d4dd993cc15fff3e30ffc9d03c2fd6444;hpb=8c7ea6a0c0d44f707eef136b77ac0dd1c55509a4;p=openvswitch diff --git a/ovsdb/file.c b/ovsdb/file.c index 9eea460d..c51f7529 100644 --- a/ovsdb/file.c +++ b/ovsdb/file.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2009, 2010, 2011 Nicira Networks +/* Copyright (c) 2009, 2010, 2011 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -333,10 +333,9 @@ ovsdb_file_txn_row_from_json(struct ovsdb_txn *txn, struct ovsdb_table *table, error = ovsdb_file_update_row_from_json(new, converting, json); if (error) { ovsdb_row_destroy(new); + } else { + ovsdb_txn_row_insert(txn, new); } - - ovsdb_txn_row_insert(txn, new); - return error; } }