Skip to content

Commit

Permalink
Tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Sep 20, 2023
1 parent d9fcf60 commit f5614bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ func newConnector(name string, init func(ctx context.Context, conn *sqlite3.Conn
}

type connector struct {
init func(ctx context.Context, conn *sqlite3.Conn) error
name string
txlock string
pragmas bool
init func(ctx context.Context, conn *sqlite3.Conn) error
}

func (n *connector) Driver() driver.Driver {
Expand Down
2 changes: 1 addition & 1 deletion vfs/memdb/memdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (m *memFile) WriteAt(b []byte, off int64) (n int, err error) {
n = copy((*m.data[base])[rest:], b)
if n < len(b) {
// Assume writes are page aligned.
return 0, io.ErrShortWrite
return n, io.ErrShortWrite
}
if size := off + int64(len(b)); size > m.size {
m.size = size
Expand Down
2 changes: 1 addition & 1 deletion vfs/tests/mptest/mptest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func Test_multiwrite01(t *testing.T) {

func Test_config01_memory(t *testing.T) {
ctx := util.NewContext(newContext(t))
cfg := config(ctx).WithArgs("mptest", "test.db",
cfg := config(ctx).WithArgs("mptest", "/test.db",
"config01.test",
"--vfs", "memdb",
"--timeout", "1000")
Expand Down

0 comments on commit f5614bc

Please sign in to comment.