Closed GoogleCodeExporter closed 9 years ago
Looks like darwin 64 has slight differences in sizes of the elements in the
syscall struct.
k := struct {
Start uint64
Len uint64
Pid uint32
Type uint16
Whence uint16
}{
Start: 0,
Len: 0, // 0 means to lock the entire file.
Pid: uint32(os.Getpid()),
Type: syscall.F_WRLCK,
Whence: uint16(os.SEEK_SET),
}
The above seems to get me a lock file, but then open fails with:
leveldb: could not open CURRENT file for DB "/db/path": open /db/path/CURRENT:
no such file or directory
Original comment by elij...@gmail.com
on 19 Jun 2012 at 3:18
It's simply not tested on anything else. All my computers are linux/amd64.
Sorry for the late response, but I had a typo in my mail setup and wasn't
getting leveldb-go bug mail.
Original comment by nigel...@golang.org
on 2 Aug 2012 at 1:48
I have a patch for this and will contribute the CL soon.
Original comment by yves.jun...@gmail.com
on 4 Aug 2012 at 5:42
http://codereview.appspot.com/6446087/
Original comment by yves.jun...@gmail.com
on 4 Aug 2012 at 8:34
elij.mx, note that the other error you see is because leveldb-go currently
doesn't create a database if it's missing, which is a separate issue.
Original comment by yves.jun...@gmail.com
on 4 Aug 2012 at 8:36
Aha!
Thanks.
Original comment by elij...@gmail.com
on 4 Aug 2012 at 9:52
Original comment by nigel...@golang.org
on 8 Aug 2012 at 6:05
Original issue reported on code.google.com by
elij...@gmail.com
on 18 Jun 2012 at 5:20