summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2026-02-07 20:04:39 +0000
committerJunio C Hamano <gitster@pobox.com>2026-02-07 17:41:02 -0800
commite54bedc169cf6f4fe73143ecf5f3725e3af884c3 (patch)
treeb54b109b3b7058d019783216fa6307ba9dce858e
parent0a0f6b97e9bd41c1ed6b386b99a52e62ea72e4a6 (diff)
downloadgit-e54bedc169cf6f4fe73143ecf5f3725e3af884c3.tar.gz
git-e54bedc169cf6f4fe73143ecf5f3725e3af884c3.zip
write-or-die: add an fsync component for the object map
We'll soon be writing out an object map using the hashfile code. Add an fsync component to allow us to handle fsyncing it correctly. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--write-or-die.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/write-or-die.h b/write-or-die.h
index 65a5c42a47..ff0408bd84 100644
--- a/write-or-die.h
+++ b/write-or-die.h
@@ -21,6 +21,7 @@ enum fsync_component {
FSYNC_COMPONENT_COMMIT_GRAPH = 1 << 3,
FSYNC_COMPONENT_INDEX = 1 << 4,
FSYNC_COMPONENT_REFERENCE = 1 << 5,
+ FSYNC_COMPONENT_OBJECT_MAP = 1 << 6,
};
#define FSYNC_COMPONENTS_OBJECTS (FSYNC_COMPONENT_LOOSE_OBJECT | \
@@ -44,7 +45,8 @@ enum fsync_component {
FSYNC_COMPONENT_PACK_METADATA | \
FSYNC_COMPONENT_COMMIT_GRAPH | \
FSYNC_COMPONENT_INDEX | \
- FSYNC_COMPONENT_REFERENCE)
+ FSYNC_COMPONENT_REFERENCE | \
+ FSYNC_COMPONENT_OBJECT_MAP)
#ifndef FSYNC_COMPONENTS_PLATFORM_DEFAULT
#define FSYNC_COMPONENTS_PLATFORM_DEFAULT FSYNC_COMPONENTS_DEFAULT