| 1303 | |
| 1304 | |
| 1305 | void Blob::getInfo(CheckStatusWrapper* status, |
| 1306 | unsigned int itemsLength, const unsigned char* items, |
| 1307 | unsigned int bufferLength, unsigned char* buffer) |
| 1308 | { |
| 1309 | /************************************** |
| 1310 | * |
| 1311 | * g d s _ b l o b _ i n f o |
| 1312 | * |
| 1313 | ************************************** |
| 1314 | * |
| 1315 | * Functional description |
| 1316 | * Provide information on blob object. |
| 1317 | * |
| 1318 | **************************************/ |
| 1319 | try |
| 1320 | { |
| 1321 | reset(status); |
| 1322 | |
| 1323 | CHECK_HANDLE(blob, isc_bad_segstr_handle); |
| 1324 | |
| 1325 | Rdb* rdb = blob->rbl_rdb; |
| 1326 | CHECK_HANDLE(rdb, isc_bad_db_handle); |
| 1327 | |
| 1328 | if (blob->rbl_info.getLocalInfo(itemsLength, items, bufferLength, buffer)) |
| 1329 | return; |
| 1330 | |
| 1331 | fb_assert(!blob->isCached()); |
| 1332 | |
| 1333 | rem_port* port = rdb->rdb_port; |
| 1334 | RefMutexGuard portGuard(*port->port_sync, FB_FUNCTION); |
| 1335 | |
| 1336 | info(status, rdb, op_info_blob, blob->rbl_id, 0, |
| 1337 | itemsLength, items, 0, 0, bufferLength, buffer); |
| 1338 | } |
| 1339 | catch (const Exception& ex) |
| 1340 | { |
| 1341 | ex.stuffException(status); |
| 1342 | } |
| 1343 | } |
| 1344 | |
| 1345 | |
| 1346 | void Blob::freeClientData(CheckStatusWrapper* status, bool force) |
no test coverage detected