Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-datastore
Commits
f0357dbc
Commit
f0357dbc
authored
Apr 12, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autobatch: fix flush on close
parent
301890e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
autobatch/autobatch.go
autobatch/autobatch.go
+9
-1
No files found.
autobatch/autobatch.go
View file @
f0357dbc
...
...
@@ -128,5 +128,13 @@ func (d *Datastore) DiskUsage() (uint64, error) {
}
func
(
d
*
Datastore
)
Close
()
error
{
return
d
.
child
.
Close
()
err1
:=
d
.
Flush
()
err2
:=
d
.
child
.
Close
()
if
err1
!=
nil
{
return
err1
}
if
err2
!=
nil
{
return
err2
}
return
nil
}
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