Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuta HIGUCHI
2014-11-12 10:06:38 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7a0ed16b62e39c70d0bd61fb7c93d3775e9ba712
7a0ed16b
1 parent
3066cf6c
FooComponent: check before create
Change-Id: Ie073ebc41a4c9028a1db804c57047a95f6617e47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
apps/foo/src/main/java/org/onlab/onos/foo/FooComponent.java
apps/foo/src/main/java/org/onlab/onos/foo/FooComponent.java
View file @
7a0ed16
...
...
@@ -157,7 +157,9 @@ public class FooComponent {
final
String
someTable
=
"admin"
;
final
String
someKey
=
"long"
;
dbAdminService
.
createTable
(
someTable
);
if
(!
dbAdminService
.
listTables
().
contains
(
someTable
))
{
dbAdminService
.
createTable
(
someTable
);
}
VersionedValue
vv
=
dbService
.
get
(
someTable
,
someKey
);
if
(
vv
==
null
)
{
...
...
Please
register
or
login
to post a comment