nsmcp::accessAggregateOpen
nsmcp::accessAggregateOpen
Defined in
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
-
No testcase defined.
Source code:
upvar 1 $stateVar state
if {![dict exists $state aggregate]} {
if {[dict get $limits aggregatePool] eq "" || [dict get $state stats requestCount]>0} {
dict set state aggregate [dict create backend memory status fallback reason [expr {[dict get $limits aggregatePool] eq "" ? "sqlite-pool-not-configured" : "legacy-continuation"}]]
}
}
if {[dict exists $state aggregate backend] && [dict get $state aggregate backend] eq "memory"} {
return {}
}
set checkpoint [expr {[dict exists $state aggregate] ? [dict get $state aggregate] : {}}]
if {[catch {
::nsmcp::AccessCardinalityStore new -directory $directory -limits $limits -checkpoint $checkpoint
} writer options]} {
set failure [accessAggregationDiagnostic construct $writer $options]
dict set state aggregate [dict create backend memory status fallback reason sqlite-initialization-failed failure $failure]
return {}
}
dict set state aggregate [$writer snapshot]
return $writer
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]