Skip to content

Commit

Permalink
Merge pull request #43 from italiangrid/develop
Browse files Browse the repository at this point in the history
StoRM backend 1.11.6
  • Loading branch information
andreaceccanti committed Jan 21, 2015
2 parents 8d97d23 + 9eeca48 commit 5d52c08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>StoRM Backend server</name>
<groupId>org.italiangrid.storm</groupId>
<artifactId>storm-backend-server</artifactId>
<version>1.11.5-SNAPSHOT</version>
<version>1.11.6</version>

<properties>

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/it/grid/storm/catalogs/surl/SURLStatusDAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private Map<TSURL, TReturnStatus> getBoLSURLStatuses(TRequestToken token) {

String query = "SELECT rb.sourceSURL, sb.statusCode "
+ "FROM request_queue rq JOIN (request_BoL rb, status_BoL sb) "
+ "ON (rb.request_queueID = rq.ID AND sb.ID = rb.ID)"
+ "ON (rb.request_queueID = rq.ID AND sb.request_BoLID = rb.ID)"
+ "WHERE ( rq.r_token = ? )";

stat = con.prepareStatement(query);
Expand Down Expand Up @@ -373,7 +373,7 @@ private Map<TSURL, TReturnStatus> getPtGSURLStatuses(TRequestToken token) {

String query = "SELECT rg.sourceSURL, sg.statusCode "
+ "FROM request_queue rq JOIN (request_Get rg, status_Get sg) "
+ "ON (rg.request_queueID = rq.ID AND sg.ID = rg.ID) "
+ "ON (rg.request_queueID = rq.ID AND sg.request_GetID=rg.ID) "
+ "WHERE ( rq.r_token = ? )";

stat = con.prepareStatement(query);
Expand Down Expand Up @@ -407,7 +407,7 @@ private Map<TSURL, TReturnStatus> getPtPSURLStatuses(TRequestToken token) {

String query = "SELECT rp.targetSURL, sp.statusCode "
+ "FROM request_queue rq JOIN (request_Put rp, status_Put sp) "
+ "ON (rp.request_queueID = rq.ID AND sp.ID = rp.ID)"
+ "ON (rp.request_queueID = rq.ID AND sp.request_PutID = rp.ID)"
+ "WHERE ( rq.r_token = ? )";

stat = con.prepareStatement(query);
Expand Down Expand Up @@ -667,7 +667,7 @@ public boolean surlHasOngoingPtGs(TSURL surl) {
// that have the SURL in SRM_FILE_PINNED status
String query = "SELECT rq.ID, rg.ID, sg.statusCode "
+ "FROM request_queue rq JOIN (request_Get rg, status_Get sg) "
+ "ON (rg.request_queueID = rq.ID AND sg.ID = rg.ID) "
+ "ON (rg.request_queueID = rq.ID AND sg.request_GetID = rg.ID) "
+ "WHERE ( rg.sourceSURL = ? and sg.statusCode = 22)";

stat = con.prepareStatement(query);
Expand Down

0 comments on commit 5d52c08

Please sign in to comment.