]> dgit.raspbian.org Git - git-annex.git/commitdiff
added suggestion re: hardening git-annex against interruptions
authorIlya_Shlyakhter <Ilya_Shlyakhter@web>
Thu, 24 Jun 2021 18:16:43 +0000 (18:16 +0000)
committeradmin <admin@branchable.com>
Thu, 24 Jun 2021 18:16:43 +0000 (18:16 +0000)
doc/todo/harden_against_interruptions.mdwn [new file with mode: 0644]

diff --git a/doc/todo/harden_against_interruptions.mdwn b/doc/todo/harden_against_interruptions.mdwn
new file mode 100644 (file)
index 0000000..cd38f9b
--- /dev/null
@@ -0,0 +1,6 @@
+From [another thread](https://git-annex.branchable.com/todo/add_option_to_use_sqlite__39__s_synchronous__61__OFF/#comment-dbc9fdf5fd6d73f3e628bfe94b2a43a2):
+
+>Quite possible there are situations where it fails to recover the lost information and does something annoying. But like I said, such situations can already happen 
+
+Maybe, there are some simple ways to harden git-annex against possible weirdness following abrupt interruptions?   E.g. using flag files to detect when a prior operation got interrupted,
+and rebuilding the sqlite dbs from git data.  Or tagging sqlite records with the timestamp of their creation, and not using the data if the relevant worktree files got modified since then.