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
1631b126
Commit
1631b126
authored
Jul 24, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
946fca89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
go/zodb/open.go
go/zodb/open.go
+3
-3
go/zodb/zodbpy.go
go/zodb/zodbpy.go
+3
-3
No files found.
go/zodb/open.go
View file @
1631b126
// Copyright (C) 2017 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
// Copyright (C) 2017
-2018
Nexedi SA and Contributors.
//
Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
...
...
@@ -32,7 +32,7 @@ import (
// OpenOptions describes options for OpenStorage.
type
OpenOptions
struct
{
ReadOnly
bool
// whether to open storage as read-only
NoCache
bool
// don't use cache for read/write operations
NoCache
bool
// don't use cache for read/write operations
; prefetch will be noop
}
// DriverOpener is a function to open a storage driver.
...
...
go/zodb/zodbpy.go
View file @
1631b126
...
...
@@ -149,8 +149,8 @@ func (d *dummyPyInstance) PySetState(pystate interface{}) error {
//
// The scope of the object returned is the Connection. XXX ok?
//
// The object's data is not nec
c
essarily loaded after Get returns. Use
// PActivate to make sure the object i
f
s fully loaded.
// The object's data is not necessarily loaded after Get returns. Use
// PActivate to make sure the object is fully loaded.
func
(
conn
*
Connection
)
Get
(
ctx
context
.
Context
,
oid
Oid
)
(
IPyPersistent
,
error
)
{
conn
.
objmu
.
Lock
()
// XXX -> rlock
wobj
:=
conn
.
objtab
[
oid
]
...
...
@@ -198,7 +198,7 @@ func (e *wrongClassError) Error() string {
// If there is already in-RAM object that corresponds to oid, that in-RAM object is returned.
// Otherwise new in-RAM object is created according to specified class.
//
// The object's data is not nec
c
essarily loaded after get returns. Use
// The object's data is not necessarily loaded after get returns. Use
// PActivate to make sure the object is fully loaded.
//
// XXX object scope.
...
...
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