Skip to content

Commit f00c4ac

Browse files
bk2204gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0bbba5f commit f00c4ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

write-or-die.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ enum fsync_component {
2121
FSYNC_COMPONENT_COMMIT_GRAPH = 1 << 3,
2222
FSYNC_COMPONENT_INDEX = 1 << 4,
2323
FSYNC_COMPONENT_REFERENCE = 1 << 5,
24+
FSYNC_COMPONENT_OBJECT_MAP = 1 << 6,
2425
};
2526

2627
#define FSYNC_COMPONENTS_OBJECTS (FSYNC_COMPONENT_LOOSE_OBJECT | \
@@ -44,7 +45,8 @@ enum fsync_component {
4445
FSYNC_COMPONENT_PACK_METADATA | \
4546
FSYNC_COMPONENT_COMMIT_GRAPH | \
4647
FSYNC_COMPONENT_INDEX | \
47-
FSYNC_COMPONENT_REFERENCE)
48+
FSYNC_COMPONENT_REFERENCE | \
49+
FSYNC_COMPONENT_OBJECT_MAP)
4850

4951
#ifndef FSYNC_COMPONENTS_PLATFORM_DEFAULT
5052
#define FSYNC_COMPONENTS_PLATFORM_DEFAULT FSYNC_COMPONENTS_DEFAULT

0 commit comments

Comments
 (0)