Close a blob opened either for reading or writing (creation).
| 1813 | |
| 1814 | // Close a blob opened either for reading or writing (creation). |
| 1815 | ISC_STATUS API_ROUTINE isc_close_blob(ISC_STATUS* userStatus, isc_blob_handle* blobHandle) |
| 1816 | { |
| 1817 | StatusVector status(userStatus); |
| 1818 | CheckStatusWrapper statusWrapper(&status); |
| 1819 | |
| 1820 | try |
| 1821 | { |
| 1822 | RefPtr<YBlob> blob(translateHandle(blobs, blobHandle)); |
| 1823 | |
| 1824 | blob->close(&statusWrapper); |
| 1825 | |
| 1826 | if (!(status.getState() & IStatus::STATE_ERRORS)) |
| 1827 | *blobHandle = 0; |
| 1828 | } |
| 1829 | catch (const Exception& e) |
| 1830 | { |
| 1831 | e.stuffException(&statusWrapper); |
| 1832 | } |
| 1833 | |
| 1834 | return status[1]; |
| 1835 | } |
| 1836 | |
| 1837 | |
| 1838 | // Commit a transaction. |
nothing calls this directly
no test coverage detected