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
2ca8443b
Commit
2ca8443b
authored
Jul 23, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2fa12536
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
go/zodb/storage/fs1/filestorage.go
go/zodb/storage/fs1/filestorage.go
+3
-3
go/zodb/storage/fs1/fs1tools/main.go
go/zodb/storage/fs1/fs1tools/main.go
+8
-0
go/zodb/storage/fs1/fs1tools/tail.go
go/zodb/storage/fs1/fs1tools/tail.go
+1
-0
No files found.
go/zodb/storage/fs1/filestorage.go
View file @
2ca8443b
...
...
@@ -17,11 +17,11 @@
// See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options.
// Package fs1 implements so-called FileStorage v1 ZODB storage.
// FileStorage is a single file organized as a log of transactions with data changes.
//
// XXX partly based on code from ZODB ?
// TODO link to format in zodb/py
// Package fs1 implements so-called FileStorage v1 ZODB storage.
// XXX text
package
fs1
import
(
...
...
go/zodb/storage/fs1/fs1tools/main.go
View file @
2ca8443b
...
...
@@ -24,7 +24,15 @@ import "lab.nexedi.com/kirr/neo/go/zodb/zodbtools"
var
commands
=
zodbtools
.
CommandRegistry
{
{
"tail"
,
tailSummary
,
tailUsage
,
tailMain
},
// dump, dump+verbose (fsdump.py)
// + fsstats? (fsstats.py)
{
"reindex"
,
reindexSummary
,
reindexUsage
,
reindexMain
},
// XXX reindex -> reindex, verify-index
// recover (fsrecover.py)
// verify (fstest.py)
// XXX repozo ?
}
var
helpTopics
=
zodbtools
.
HelpRegistry
{
...
...
go/zodb/storage/fs1/fs1tools/tail.go
View file @
2ca8443b
...
...
@@ -79,6 +79,7 @@ func Tail(w io.Writer, path string, ntxn int) (err error) {
// use sequential IO buffer
fSeq
:=
xbufio
.
NewSeqReaderAt
(
f
)
// XXX -> LoadPrev starting @ NextPrevStartMagic ?
// start iterating at tail.
// this should get EOF but read txnh.LenPrev ok.
err
=
txnh
.
Load
(
fSeq
,
topPos
,
fs1
.
LoadAll
)
...
...
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