Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
43838f7c
Commit
43838f7c
authored
Mar 04, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0d9a603c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
go/zodb/db.go
go/zodb/db.go
+3
-3
No files found.
go/zodb/db.go
View file @
43838f7c
...
@@ -139,13 +139,13 @@ func NewDB(stor IStorage) *DB {
...
@@ -139,13 +139,13 @@ func NewDB(stor IStorage) *DB {
return
db
return
db
}
}
// shutdown mark db no longer operational due to reason.
// shutdown mark
s
db no longer operational due to reason.
//
//
// It serves both explicit Close, or shutdown triggered due to error received
// It serves both explicit Close, or shutdown triggered due to error received
// by watcher.
// by watcher.
Only the first shutdown call has the effect.
func
(
db
*
DB
)
shutdown
(
reason
error
)
{
func
(
db
*
DB
)
shutdown
(
reason
error
)
{
db
.
downOnce
.
Do
(
func
()
{
db
.
downOnce
.
Do
(
func
()
{
db
.
downErr
=
reason
// XXX err ctx ?
db
.
downErr
=
reason
close
(
db
.
down
)
close
(
db
.
down
)
db
.
stor
.
DelWatch
(
db
.
watchq
)
db
.
stor
.
DelWatch
(
db
.
watchq
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment