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
a66fd108
Commit
a66fd108
authored
Jul 27, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
99980ffa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
45 deletions
+0
-45
go/zodb/storage/fs1/filestorage.go
go/zodb/storage/fs1/filestorage.go
+0
-45
No files found.
go/zodb/storage/fs1/filestorage.go
View file @
a66fd108
...
@@ -1350,51 +1350,6 @@ func (fs *FileStorage) computeIndex(ctx context.Context) (index *Index, err erro
...
@@ -1350,51 +1350,6 @@ func (fs *FileStorage) computeIndex(ctx context.Context) (index *Index, err erro
}
}
return
index
,
nil
return
index
,
nil
/*
it := Iterate(fsSeq, index.TopPos, IterForward)
loop:
for {
// check ctx cancel once per transaction
select {
case <-ctx.Done():
return nil, ctx.Err()
default:
}
err = it.NextTxn(LoadNoStrings)
if err != nil {
err = okEOF(err)
break
}
// XXX check txnh.Status != TxnInprogress
index.TopPos = it.Txnh.Pos + it.Txnh.Len
for {
err = it.NextData()
if err != nil {
err = okEOF(err)
if err != nil {
break loop
}
break
}
index.Set(it.Datah.Oid, it.Datah.Pos)
}
}
if err != nil {
return nil, err
}
return index, nil
*/
}
}
// checkIndexSane quickly checks index sanity.
// checkIndexSane quickly checks index sanity.
...
...
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