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
2aa8e196
Commit
2aa8e196
authored
May 31, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
496019d6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
go/zodb/connection.go
go/zodb/connection.go
+7
-1
go/zodb/db.go
go/zodb/db.go
+4
-0
go/zodb/persistent_test.go
go/zodb/persistent_test.go
+2
-2
go/zodb/storage/fs1/filestorage.go
go/zodb/storage/fs1/filestorage.go
+2
-1
No files found.
go/zodb/connection.go
View file @
2aa8e196
// Copyright (C) 2018-20
19
Nexedi SA and Contributors.
// Copyright (C) 2018-20
20
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -190,6 +190,12 @@ func newConnection(db *DB, at Tid) *Connection {
}
}
// DB returns database handle under which the connection was opened.
func
(
conn
*
Connection
)
DB
()
*
DB
{
conn
.
checkLive
(
"db"
)
// XXX needed?
return
conn
.
db
}
// At returns database state corresponding to the connection.
func
(
conn
*
Connection
)
At
()
Tid
{
conn
.
checkLive
(
"at"
)
...
...
go/zodb/db.go
View file @
2aa8e196
...
...
@@ -166,6 +166,10 @@ func (db *DB) Close() error {
return
nil
}
// Storage returns storage this database handle was created for.
func
(
db
*
DB
)
Storage
()
IStorage
{
return
db
.
stor
}
// ConnOptions describes options to DB.Open .
type
ConnOptions
struct
{
...
...
go/zodb/persistent_test.go
View file @
2aa8e196
// Copyright (C) 2018-20
19
Nexedi SA and Contributors.
// Copyright (C) 2018-20
20
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -266,7 +266,7 @@ func testdb(t0 *testing.T, rawcache bool) *tDB {
return
t
}
// Reopen re
po
ens zodb/go .stor and .db .
// Reopen re
op
ens zodb/go .stor and .db .
func
(
t
*
tDB
)
Reopen
()
{
t
.
Helper
()
X
:=
t
.
fatalif
...
...
go/zodb/storage/fs1/filestorage.go
View file @
2aa8e196
// Copyright (C) 2017-20
19
Nexedi SA and Contributors.
// Copyright (C) 2017-20
20
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -591,6 +591,7 @@ mainloop:
fs
.
syncMu
.
Unlock
()
// check f size, to see whether there could be any updates.
// XXX /tmp/δBTail491926614/1.fs: watcher: stat /tmp/δBTail491926614/1.fs: use of closed file
fi
,
err
:=
f
.
Stat
()
if
err
!=
nil
{
return
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