nsmcp::accessScanRangeMature (private)

 nsmcp::accessScanRangeMature file limits

Defined in /usr/local/ns/tcl/nsmcp/examples/nsmcp-openacs-api-docs.tcl

Check whether source range evidence is sufficient for indexed exclusion. @return Boolean result.

Parameters:
file (required)
limits (required)

Partial Call Graph (max 5 caller/called nodes):
nsmcp::AccessTimeIndex proc advance nsmcp::AccessTimeIndex proc advance (public) nsmcp::accessScanRangeMature nsmcp::accessScanRangeMature nsmcp::AccessTimeIndex proc advance->nsmcp::accessScanRangeMature nsmcp::AccessTimeIndex proc build nsmcp::AccessTimeIndex proc build (public) nsmcp::AccessTimeIndex proc build->nsmcp::accessScanRangeMature nsmcp::AccessTimeIndex proc excludeFile nsmcp::AccessTimeIndex proc excludeFile (public) nsmcp::AccessTimeIndex proc excludeFile->nsmcp::accessScanRangeMature nsmcp::accessScanRangeLoad nsmcp::accessScanRangeLoad (private) nsmcp::accessScanRangeLoad->nsmcp::accessScanRangeMature nsmcp::accessScanRangeSave nsmcp::accessScanRangeSave (private) nsmcp::accessScanRangeSave->nsmcp::accessScanRangeMature

Testcases:
No testcase defined.
Source code:
    if {![dict exists $file ctime]} {
        return false
    }
    set cutoff [expr {[clock seconds]-[dict get $limits rangeMaturity]}]
    return [expr {[dict get $file mtime]<=$cutoff && [dict get $file ctime]<=$cutoff}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: