diff --git a/prods/src/RODSConn.class.php b/prods/src/RODSConn.class.php index d460e27..1b6f0ac 100644 --- a/prods/src/RODSConn.class.php +++ b/prods/src/RODSConn.class.php @@ -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(); diff --git a/prods/src/RodsAPINum.inc.php b/prods/src/RodsAPINum.inc.php index cb824ff..ddef9ee 100644 --- a/prods/src/RodsAPINum.inc.php +++ b/prods/src/RodsAPINum.inc.php @@ -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', @@ -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',