Skip to content

Commit 5bf51d1

Browse files
committed
fix: Disable prefetch on list by default
1 parent 501ed1f commit 5bf51d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/cfg/flags.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ MISC OPTIONS:
148148
},
149149

150150
cli.BoolFlag{
151-
Name: "no-tigris-prefetch",
152-
Usage: "Disable Tigris prefetch on list (default: on)",
151+
Name: "tigris-prefetch",
152+
Usage: "Enable Tigris prefetch on list (default: off)",
153153
},
154154

155155
cli.BoolFlag{
@@ -955,7 +955,7 @@ func PopulateFlags(c *cli.Context) (ret *FlagStorage) {
955955
ClusterMode: c.Bool("cluster"),
956956
ClusterGrpcReflection: c.Bool("grpc-reflection"),
957957

958-
TigrisPrefetch: !c.Bool("no-tigris-prefetch"),
958+
TigrisPrefetch: c.Bool("tigris-prefetch"),
959959
TigrisListContent: c.Bool("tigris-list-content"),
960960
}
961961

@@ -1138,7 +1138,7 @@ func DefaultFlags() *FlagStorage {
11381138
{PartSize: 25 * 1024 * 1024, PartCount: 1000},
11391139
{PartSize: 125 * 1024 * 1024, PartCount: 8000},
11401140
},
1141-
TigrisPrefetch: true,
1141+
TigrisPrefetch: false,
11421142
TigrisListContent: true,
11431143
}
11441144
}

0 commit comments

Comments
 (0)