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
472d16cf
Commit
472d16cf
authored
Dec 19, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4cc79d6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
go/zodb/storage/fs1/filestorage.go
go/zodb/storage/fs1/filestorage.go
+7
-9
No files found.
go/zodb/storage/fs1/filestorage.go
View file @
472d16cf
...
...
@@ -687,17 +687,15 @@ func Open(ctx context.Context, path string, opt *zodb.DriverOptions) (_ *FileSto
log
.
Print
(
err
)
log
.
Printf
(
"%s: index rebuild..."
,
path
)
index
,
err
=
BuildIndex
(
ctx
,
fseq
,
nil
/*no progress; XXX log it? */
)
// XXX cause=ErrUnexpectedEOF -> let watcher decide what was
// i
t: garbage or in-progress transaction
if
err
!=
nil
{
return
nil
,
err
}
}
else
{
// i
ndex loaded. In particular this gives us index.TopPos that is, possibly
// outdated, valid position for start of a transaction in the data file.
// Update the index starting from that till latest transaction.
err
=
index
.
Update
(
ctx
,
fseq
,
-
1
,
nil
/*no progress; XXX log it? */
)
}
// index loaded. In particular this gives us index.TopPos that is, possibly
// outdated, valid position for start of a transaction in the data file.
// Update the index starting from that till latest transaction.
err
=
index
.
Update
(
ctx
,
fseq
,
-
1
,
nil
/*no progress; XXX log it? */
)
// XXX cause=ErrUnexpectedEOF -> let watcher decide what was
// it: garbage or in-progress transaction
if
err
!=
nil
{
return
nil
,
err
}
...
...
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