Commit graph

41062 commits

Author SHA1 Message Date
Joey Hess
f5b642318d
eliminate single/multi writer distinction
After commit f4bdecc4ec, there is no
longer any distinction between SingleWriter and MultiWriter's handling
of read after write.

Databases that were SingleWriter still have lock files that are used to
prevent multiple writers.

This does make writing to such databases a bit more expensive,
because the MultiWriter code path that is now used opens a second db
connection in order to write to them.
2021-10-20 12:26:30 -04:00
Joey Hess
c47794991c
improve with continuation
no behavior change
2021-10-20 12:13:49 -04:00
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476
2ae821e458 Added a comment 2021-10-20 14:42:33 +00:00
gitannexuser2021
cf08ac583a Added a comment: Still seeing the issue. 2021-10-19 22:37:45 +00:00
Joey Hess
47e30f78be
Merge branch 'master' of ssh://git-annex.branchable.com 2021-10-19 15:15:29 -04:00
Joey Hess
f4bdecc4ec
improve sqlite MultiWriter handling of read after write
This removes a messy caveat that was easy to forget and caused at least one
bug. The price paid is that, after a write to a MultiWriter db, it has to
close the db connection that it had been using to read, and open a new
connection. So it might be a little bit slower. But, writes are usually
batched together, so there's often only a single write, and so there should
not be much of a slowdown. Notice that SingleWriter already closed the db
connection after a write, so paid the same overhead.

This is the second try at fixing a bug: git-annex get when run as the first
git-annex command in a new repo did not populate all unlocked files.
(Reversion in version 8.20210621)

Sponsored-by: Boyd Stephen Smith Jr. on Patreon
2021-10-19 15:13:29 -04:00
Lukey
82b54f53ec Added a comment 2021-10-19 17:17:47 +00:00
Joey Hess
ade67b78c5
Merge branch 'master' of ssh://git-annex.branchable.com 2021-10-19 13:17:04 -04:00
Joey Hess
c49b7c976d
reopen 2021-10-19 13:16:29 -04:00
Joey Hess
0f38ad9a69
close keys db to possibly work around WSL1 issue 2021-10-19 13:07:49 -04:00
paperbenni
514bbfd7f3 2021-10-19 16:45:12 +00:00
Joey Hess
67a67d740b
comment 2021-10-19 12:43:08 -04:00
Joey Hess
d7bbe01a95
remove xmpp mention 2021-10-19 12:26:22 -04:00
Joey Hess
81ec8508df
Merge branch 'master' of ssh://git-annex.branchable.com 2021-10-19 12:03:51 -04:00
Joey Hess
3de3f40c11
comment 2021-10-19 10:26:39 -04:00
Atemu
6824a56d09 Added a comment 2021-10-19 13:05:50 +00:00
Atemu
8626f35898 Added a comment 2021-10-19 12:26:33 +00:00
Joey Hess
8e8de08a0e
update to lts-18.13
ghc 8.10
2021-10-18 16:27:10 -04:00
Joey Hess
887edeb1ad
avoid warning when built with unix-compat 0.5.3
It re-exports modificationTimeHiRes, and provides a windows version.

Might be worth using that windows version eventually, but I have not
tested it.
2021-10-18 16:25:28 -04:00
Joey Hess
0697dbe2d2
rename to avoid warning
a new version of persistent exports an "exists"
2021-10-18 16:25:00 -04:00
username
0c216a7cb8 Added a comment 2021-10-18 19:54:29 +00:00
Joey Hess
d9fbbb2346
remove osx stack.yaml
The OSX autobuilder is now using github CI, and can use a current
version of ghc, rather than the old one.

Sponsored-by: Dartmouth College's Datalad project
2021-10-18 13:15:47 -04:00
Joey Hess
51e14ca16c
pin aws to revision 0
revision 1 seems to have introduced a build failure

Sponsored-by: Dartmouth College's Datalad project
2021-10-18 11:57:02 -04:00
Joey Hess
bd97a0cbd9
Merge branch 'master' of ssh://git-annex.branchable.com 2021-10-18 11:50:33 -04:00
Lukey
862854028a Added a comment 2021-10-18 15:36:06 +00:00
Joey Hess
6fe5e31d8c
note about encryption/chunking 2021-10-18 11:11:24 -04:00
username
c47c76feaa Added a comment: directory special remote 2021-10-17 22:15:52 +00:00
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476
6d53f52092 Added a comment 2021-10-17 01:14:18 +00:00
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476
8a20c01775 Added a comment 2021-10-16 15:46:32 +00:00
Lukey
7c40c31210 Added a comment 2021-10-16 15:27:35 +00:00
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476
7ec426734b Note about case sensitivity dirs 2021-10-16 15:25:00 +00:00
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476
8ef65adaca Update WSL1 instructions 2021-10-16 15:16:23 +00:00
asakurareiko@f3d908c71c009580228b264f63f21c7274df7476
4eefcf2c75 2021-10-16 14:45:43 +00:00
athas@60e56fd42a78bbbce444d175865ce4d66ba1a779
9c9bd88cea Added a comment: GitHub Actions 2021-10-15 20:53:06 +00:00
Joey Hess
f9e2d3d900
update 2021-10-15 13:50:57 -04:00
Joey Hess
909e980a74
comment 2021-10-15 13:49:41 -04:00
Joey Hess
cfca6f2d1d
Merge branch 'master' of ssh://git-annex.branchable.com 2021-10-15 13:47:43 -04:00
Joey Hess
f42679364b
comment 2021-10-15 13:14:19 -04:00
Joey Hess
647fc90b12
comment 2021-10-15 12:43:23 -04:00
athas@60e56fd42a78bbbce444d175865ce4d66ba1a779
b93f4f65a5 Added a comment: Update 2021-10-15 16:37:34 +00:00
athas@60e56fd42a78bbbce444d175865ce4d66ba1a779
1f8d6543ce removed 2021-10-15 16:21:07 +00:00
athas@60e56fd42a78bbbce444d175865ce4d66ba1a779
00e88a546d Added a comment: Update 2021-10-15 16:13:32 +00:00
athas@60e56fd42a78bbbce444d175865ce4d66ba1a779
a7fa597ad4 2021-10-15 16:09:51 +00:00
Joey Hess
29d687dce9
When retrival from a chunked remote fails, display the error that occurred when downloading the chunk
Rather than the error that occurred when trying to download the unchunked
content, which is less likely to actually be stored in the remote.

Sponsored-by: Boyd Stephen Smith Jr. on Patreon
2021-10-14 12:45:05 -04:00
Joey Hess
20c375d912
followup 2021-10-14 12:08:54 -04:00
Joey Hess
97dfaabbf0
remove 3 comments that turned out to be about an unrelated problem which got its own bug report 2021-10-14 12:05:07 -04:00
Joey Hess
b36cc0320e
avoid crashing tilde expansion on user who does not exist
git does not crash when there's a remote configured for a user who does
not exist, and this prevents git-annex from crashing too. Consider that
a user might exist on one system but not another, and the git repo be
moved between systems. So not crashing is desirable.

Note that git fetch seems to mishandle a remote path like ~foo/bar
when the user does not exist. While it does access ./~foo/bar,
and gets as far as running git-upload-pack on the path,
it then complains there is no such repo. So different parts of git seem
to be doing different things in that edge case. Anyway, git-annex does
not need to be bug-for-bug compatible with git.

Sponsored-by: Jack Hill on Patreon
2021-10-13 09:16:36 -04:00
Joey Hess
3b5ac2d0d1
close per comment 2021-10-12 13:42:55 -04:00
Joey Hess
b117f9338d
open todo 2021-10-12 13:42:08 -04:00
Joey Hess
c2a44eab50
move gpg tmp home to system temp dir
test: Put gpg temp home directory in system temp directory, not filesystem
being tested.

Since I've found indications gpg can fail talking to the agent when the
socket ends up on eg, fat. And to hopefully fix this bug report I've
followed up on.

The main risk in using the system temp dir is that TMPDIR could be set to a
long directory path, which is too long to put a unix socket in. To
partially amelorate that risk, it uses either an absolute or a relative
path, whichever is shorter. (Hopefully gpg will not convert it to a longer
form of the path..)

If the user sets TMPDIR to something so long a path to it +
"S.gpg-agent" is too long, I suppose that's their issue to deal with.

Sponsored-by: Dartmouth College's Datalad project
2021-10-12 13:29:56 -04:00