Dolda2000 GitWeb
/
jsvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a VM shutdown hook in DirServer to shut down contexts properly.
[jsvc.git]
/
src
/
dolda
/
jsvc
/
store
/
Store.java
diff --git
a/src/dolda/jsvc/store/Store.java
b/src/dolda/jsvc/store/Store.java
index
0664156
..
d32b3a2
100644
(file)
--- a/
src/dolda/jsvc/store/Store.java
+++ b/
src/dolda/jsvc/store/Store.java
@@
-24,7
+24,7
@@
public abstract class Store implements Iterable<File> {
ThreadContext ctx = ThreadContext.current();
if(ctx == null)
throw(new RuntimeException("Not running in jsvc context"));
ThreadContext ctx = ThreadContext.current();
if(ctx == null)
throw(new RuntimeException("Not running in jsvc context"));
- String bn = ctx.server().
config("jsvc.storage"
);
+ String bn = ctx.server().
sysconfig("jsvc.storage", null
);
if(bn == null)
throw(new RuntimeException("No storage root has been configured"));
return(bn);
if(bn == null)
throw(new RuntimeException("No storage root has been configured"));
return(bn);