Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
72da8bbf
Commit
72da8bbf
authored
1 year ago
by
Marcin
Browse files
Options
Downloads
Patches
Plain Diff
haf#153
: use procedures for attching/detaching a haf context
parent
4bb25423
No related branches found
No related tags found
2 merge requests
!827
Merge develop changes to master
,
!606
haf#153: use procedures for attaching/detaching a haf context
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
haf
+1
-1
1 addition, 1 deletion
haf
hive/indexer/hive_db/haf_functions.py
+2
-2
2 additions, 2 deletions
hive/indexer/hive_db/haf_functions.py
with
3 additions
and
3 deletions
haf
@
84bb1ab9
Compare
e03debc5
...
84bb1ab9
Subproject commit
e03debc5e5ffe69fe58c7348872527f5abb8911f
Subproject commit
84bb1ab9607f58481c764781051791006349b4e0
This diff is collapsed.
Click to expand it.
hive/indexer/hive_db/haf_functions.py
+
2
−
2
View file @
72da8bbf
...
...
@@ -23,7 +23,7 @@ def context_detach(db: Db) -> None:
return
log
.
info
(
"
Trying to detach app context...
"
)
db
.
query_no_return
(
f
"
SELECT
hive.app_context_detach(
'
{
SCHEMA_NAME
}
'
)
"
)
db
.
query_no_return
(
f
"
CALL
hive.app
proc
_context_detach(
'
{
SCHEMA_NAME
}
'
)
"
)
log
.
info
(
"
App context detaching done.
"
)
...
...
@@ -35,5 +35,5 @@ def context_attach(db: Db, block_number: int) -> None:
return
log
.
info
(
f
"
Trying to attach app context with block number:
{
block_number
}
"
)
db
.
query_no_return
(
f
"
SELECT
hive.app_context_attach(
'
{
SCHEMA_NAME
}
'
,
{
block_number
}
)
"
)
db
.
query_no_return
(
f
"
CALL
hive.app
proc
_context_attach(
'
{
SCHEMA_NAME
}
'
,
{
block_number
}
)
"
)
log
.
info
(
"
App context attaching done.
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment