Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
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