Committed by
Gerrit Code Review
Inline variable to remove redundancy
Change-Id: I6cb771794f5a03c77cd09d3e4e048bd271d63285
Showing
1 changed file
with
2 additions
and
3 deletions
... | @@ -926,8 +926,7 @@ public class DefaultOvsdbClient | ... | @@ -926,8 +926,7 @@ public class DefaultOvsdbClient |
926 | DatabaseSchema dbSchema = schema.get(OvsdbConstant.DATABASENAME); | 926 | DatabaseSchema dbSchema = schema.get(OvsdbConstant.DATABASENAME); |
927 | TableSchema tableSchema = dbSchema.getTableSchema(childTableName); | 927 | TableSchema tableSchema = dbSchema.getTableSchema(childTableName); |
928 | 928 | ||
929 | - String namedUuid = childTableName; | 929 | + Insert insert = new Insert(tableSchema, childTableName, row); |
930 | - Insert insert = new Insert(tableSchema, namedUuid, row); | ||
931 | 930 | ||
932 | ArrayList<Operation> operations = Lists.newArrayList(); | 931 | ArrayList<Operation> operations = Lists.newArrayList(); |
933 | operations.add(insert); | 932 | operations.add(insert); |
... | @@ -940,7 +939,7 @@ public class DefaultOvsdbClient | ... | @@ -940,7 +939,7 @@ public class DefaultOvsdbClient |
940 | 939 | ||
941 | List<Mutation> mutations = Lists.newArrayList(); | 940 | List<Mutation> mutations = Lists.newArrayList(); |
942 | Mutation mutation = MutationUtil.insert(parentColumnSchema.name(), | 941 | Mutation mutation = MutationUtil.insert(parentColumnSchema.name(), |
943 | - Uuid.uuid(namedUuid)); | 942 | + Uuid.uuid(childTableName)); |
944 | mutations.add(mutation); | 943 | mutations.add(mutation); |
945 | 944 | ||
946 | List<Condition> conditions = Lists.newArrayList(); | 945 | List<Condition> conditions = Lists.newArrayList(); | ... | ... |
-
Please register or login to post a comment