Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
praxis-core
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
praxis
praxis-core
Commits
774f72c7
Verified
Commit
774f72c7
authored
7 years ago
by
BIGARET Sebastien
Browse files
Options
Downloads
Plain Diff
Merge branch 'release/2.1'
parents
65d8f300
1d946faa
No related branches found
Tags
v2.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/eu/telecom_bretagne/praxis/server/Serveur.java
+2
-3
2 additions, 3 deletions
src/eu/telecom_bretagne/praxis/server/Serveur.java
with
2 additions
and
3 deletions
src/eu/telecom_bretagne/praxis/server/Serveur.java
+
2
−
3
View file @
774f72c7
...
...
@@ -100,8 +100,8 @@ public class Serveur extends UnicastRemoteObject implements RemoteServerInterfac
serveur
=
new
Serveur
();
boolean
createDB
=
!
new
File
(
resultStoreDBFilename
).
exists
();
Class
.
forName
(
"org.sqlite.JDBC"
).
newInstance
();
try
(
Connection
c
=
DriverManager
.
getConnection
(
"jdbc:sqlite:/"
+
resultStoreDBFilename
)
)
{
@SuppressWarnings
(
"resource"
)
// does not leak! it is used by the ResultStore object! do NOT close it!
Connection
c
=
DriverManager
.
getConnection
(
"jdbc:sqlite:/"
+
resultStoreDBFilename
);
if
(
createDB
)
{
c
.
createStatement
().
execute
(
ResultStore
.
RESULT_db_schema
);
...
...
@@ -118,7 +118,6 @@ public class Serveur extends UnicastRemoteObject implements RemoteServerInterfac
Log
.
log
.
log
(
Level
.
WARNING
,
"Unable to set journal_mode to WAL w/ synchronous=normal"
,
e
);
}
resultStore
=
new
ResultStore
(
c
);
}
}
catch
(
Exception
e
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment