Commit 1631b126 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 946fca89
// Copyright (C) 2017 Nexedi SA and Contributors. // Copyright (C) 2017-2018 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com> // Kirill Smelkov <kirr@nexedi.com>
// //
// This program is free software: you can Use, Study, Modify and Redistribute // This program is free software: you can Use, Study, Modify and Redistribute
...@@ -32,7 +32,7 @@ import ( ...@@ -32,7 +32,7 @@ import (
// OpenOptions describes options for OpenStorage. // OpenOptions describes options for OpenStorage.
type OpenOptions struct { type OpenOptions struct {
ReadOnly bool // whether to open storage as read-only 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. // DriverOpener is a function to open a storage driver.
......
...@@ -149,8 +149,8 @@ func (d *dummyPyInstance) PySetState(pystate interface{}) error { ...@@ -149,8 +149,8 @@ func (d *dummyPyInstance) PySetState(pystate interface{}) error {
// //
// The scope of the object returned is the Connection. XXX ok? // The scope of the object returned is the Connection. XXX ok?
// //
// The object's data is not neccessarily loaded after Get returns. Use // The object's data is not necessarily loaded after Get returns. Use
// PActivate to make sure the object ifs fully loaded. // PActivate to make sure the object is fully loaded.
func (conn *Connection) Get(ctx context.Context, oid Oid) (IPyPersistent, error) { func (conn *Connection) Get(ctx context.Context, oid Oid) (IPyPersistent, error) {
conn.objmu.Lock() // XXX -> rlock conn.objmu.Lock() // XXX -> rlock
wobj := conn.objtab[oid] wobj := conn.objtab[oid]
...@@ -198,7 +198,7 @@ func (e *wrongClassError) Error() string { ...@@ -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. // 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. // Otherwise new in-RAM object is created according to specified class.
// //
// The object's data is not neccessarily 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. // PActivate to make sure the object is fully loaded.
// //
// XXX object scope. // XXX object scope.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment