Skip to content
This repository has been archived by the owner on Jul 3, 2018. It is now read-only.

Commit

Permalink
#9 fixing close()
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed Sep 5, 2014
1 parent f6ac913 commit a7c36ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prods/src/RODSConn.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -958,8 +958,9 @@ public function fileUnlink($path, $rescname = NULL, $force = false) {
*/
public function closeFileDesc($l1desc) {
try {
$dataObjCloseInp_pk = new RP_dataObjCloseInp($l1desc);
$msg = new RODSMessage("RODS_API_REQ_T", $dataObjCloseInp_pk, $GLOBALS['PRODS_API_NUMS']['DATA_OBJ_CLOSE_AN']);

$openedDataObjInp = new RP_OpenedDataObjInp($l1desc);
$msg = new RODSMessage("RODS_API_REQ_T", $openedDataObjInp, $GLOBALS['PRODS_API_NUMS']['OPENED_DATA_OBJ_CLOSE_AN']);
fwrite($this->conn, $msg->pack()); // send it
// get value back
$msg = new RODSMessage();
Expand Down
2 changes: 2 additions & 0 deletions prods/src/RodsAPINum.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
'CLOSE_COLLECTION_AN' => '661',
'COLL_REPL_AN' => '662',
'RM_COLL_AN' => '663',
'OPENED_DATA_OBJ_CLOSE_AN' => '673',
'OPENED_DATA_OBJ_WRITE_AN' => '676',
'GET_MISC_SVR_INFO_AN' => '700',
'GENERAL_ADMIN_AN' => '701',
Expand Down Expand Up @@ -198,6 +199,7 @@
'662' => 'COLL_REPL_AN',
'663' => 'RM_COLL_AN',
'676' => 'OPENED_DATA_OBJ_WRITE_AN',
'673' => 'OPENED_DATA_OBJ_CLOSE_AN',
'700' => 'GET_MISC_SVR_INFO_AN',
'701' => 'GENERAL_ADMIN_AN',
'702' => 'GEN_QUERY_AN',
Expand Down

0 comments on commit a7c36ad

Please sign in to comment.