nsmcp::AccessRecordSupport method accessRecordReaderOpen (protected)

 <instance of nsmcp::AccessRecordSupport[i]> accessRecordReaderOpen \
    settings

Defined in /usr/local/ns/tcl/nsmcp/log-traffic-record-00-support.tcl

Parameters:
settings (required)

Testcases:
No testcase defined.
Source code:
set store [:accessRecordStoreOpen $settings reader]
if {![$store available]} {
    $store close
    return -code error -errorcode {NSMCP RECORD_STORE pool-busy} "Access store pool is temporarily busy"
}
if {[dict exists $settings sourcePath]} {
    try {
        set source [$store stateGet sourcePath {}]
        if {$source eq {} || $source ne [dict get $settings sourcePath]} {
            error "record-store-source-mismatch" {} {NSMCP RECORD_STORE source-mismatch}
        }
    } on error {message options} {
        $store close
        return -options $options $message
    }
}
return $store
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: