implement cluster.log

Not used yet. (Or tested.)

I did consider making the log start with the uuid of the node, followed
by the cluster uuid (or uuids). That would perhaps mean a smaller write
to the git-annex branch when adding a node, but overall the log file
would be larger, and it will be read and cached near to startup on most
git-annex runs.
This commit is contained in:
Joey Hess 2024-06-13 16:00:58 -04:00
parent 01f5015f30
commit aa56d433d5
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 135 additions and 7 deletions

View file

@ -13,8 +13,6 @@ module Logs.Proxy (
recordProxies,
) where
import qualified Data.Map as M
import qualified Annex
import Annex.Common
import qualified Annex.Branch
@ -26,6 +24,7 @@ import Logs.MapLog
import Annex.UUID
import qualified Data.Set as S
import qualified Data.Map as M
import Data.ByteString.Builder
import qualified Data.Attoparsec.ByteString as A
import qualified Data.Attoparsec.ByteString.Char8 as A8