Skip to content

Commit e5ec440

Browse files
neerajsi-msftgitster
authored andcommitted
core.fsync: fix incorrect expression for default configuration
Commit b9f5d03 (core.fsync: documentation and user-friendly aggregate options, 2022-03-15) introduced an incorrect value for FSYNC_COMPONENTS_DEFAULT. We need an AND-NOT rather than OR-NOT. Signed-off-by: Neeraj Singh <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b9f5d03 commit e5ec440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,8 +1013,8 @@ enum fsync_component {
10131013
#define FSYNC_COMPONENTS_DERIVED_METADATA (FSYNC_COMPONENT_PACK_METADATA | \
10141014
FSYNC_COMPONENT_COMMIT_GRAPH)
10151015

1016-
#define FSYNC_COMPONENTS_DEFAULT (FSYNC_COMPONENTS_OBJECTS | \
1017-
FSYNC_COMPONENTS_DERIVED_METADATA | \
1016+
#define FSYNC_COMPONENTS_DEFAULT ((FSYNC_COMPONENTS_OBJECTS | \
1017+
FSYNC_COMPONENTS_DERIVED_METADATA) & \
10181018
~FSYNC_COMPONENT_LOOSE_OBJECT)
10191019

10201020
#define FSYNC_COMPONENTS_COMMITTED (FSYNC_COMPONENTS_OBJECTS)

0 commit comments

Comments
 (0)