| 2477 | |
| 2478 | |
| 2479 | void Attachment::setParamsFromDPB(ClumpletReader& dpb) |
| 2480 | { |
| 2481 | dpb.rewind(); |
| 2482 | for (; !dpb.isEof(); dpb.moveNext()) |
| 2483 | { |
| 2484 | const UCHAR item = dpb.getClumpTag(); |
| 2485 | switch (item) |
| 2486 | { |
| 2487 | case isc_dpb_max_blob_cache_size: |
| 2488 | case isc_dpb_max_inline_blob_size: |
| 2489 | if (rdb->rdb_port->port_protocol >= PROTOCOL_INLINE_BLOB) |
| 2490 | { |
| 2491 | SLONG val = dpb.getInt(); |
| 2492 | if (val < 0) |
| 2493 | val = 0; |
| 2494 | |
| 2495 | if (item == isc_dpb_max_blob_cache_size) |
| 2496 | rdb->rdb_blob_cache_size = val; |
| 2497 | else |
| 2498 | rdb->rdb_inline_blob_size = MIN(val, MAX_INLINE_BLOB_SIZE); |
| 2499 | } |
| 2500 | break; |
| 2501 | |
| 2502 | default: |
| 2503 | break; |
| 2504 | } |
| 2505 | } |
| 2506 | } |
| 2507 | |
| 2508 | |
| 2509 | unsigned Attachment::getMaxBlobCacheSize(CheckStatusWrapper* status) |