Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
f757afef
Unverified
Commit
f757afef
authored
Sep 11, 2018
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✏
日志笔误
parent
79ba4050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/main/java/org/b3log/solo/service/InitService.java
src/main/java/org/b3log/solo/service/InitService.java
+3
-3
No files found.
src/main/java/org/b3log/solo/service/InitService.java
View file @
f757afef
...
@@ -207,7 +207,7 @@ public class InitService {
...
@@ -207,7 +207,7 @@ public class InitService {
final
List
<
CreateTableResult
>
createTableResults
=
JdbcRepositories
.
initAllTables
();
final
List
<
CreateTableResult
>
createTableResults
=
JdbcRepositories
.
initAllTables
();
for
(
final
CreateTableResult
createTableResult
:
createTableResults
)
{
for
(
final
CreateTableResult
createTableResult
:
createTableResults
)
{
LOGGER
.
log
(
Level
.
DEBUG
,
"Create table result[tableName={0}, isSuccess={1}]"
,
LOGGER
.
log
(
Level
.
DEBUG
,
"Create table result
[tableName={0}, isSuccess={1}]"
,
createTableResult
.
getName
(),
createTableResult
.
isSuccess
());
createTableResult
.
getName
(),
createTableResult
.
isSuccess
());
}
}
...
@@ -232,12 +232,12 @@ public class InitService {
...
@@ -232,12 +232,12 @@ public class InitService {
}
catch
(
final
Exception
e
)
{
}
catch
(
final
Exception
e
)
{
if
(
0
==
retries
)
{
if
(
0
==
retries
)
{
LOGGER
.
log
(
Level
.
ERROR
,
"Initialize Solo error"
,
e
);
LOGGER
.
log
(
Level
.
ERROR
,
"Initialize Solo error"
,
e
);
throw
new
ServiceException
(
"Init
ai
lize Solo error: "
+
e
.
getMessage
());
throw
new
ServiceException
(
"Init
ia
lize Solo error: "
+
e
.
getMessage
());
}
}
// Allow retry to occur
// Allow retry to occur
--
retries
;
--
retries
;
LOGGER
.
log
(
Level
.
WARN
,
"Retrying to init Solo[retries={0}]"
,
retries
);
LOGGER
.
log
(
Level
.
WARN
,
"Retrying to init Solo
[retries={0}]"
,
retries
);
}
finally
{
}
finally
{
if
(
transaction
.
isActive
())
{
if
(
transaction
.
isActive
())
{
transaction
.
rollback
();
transaction
.
rollback
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment