Skip to content

Commit 7f6e7d4

Browse files
committed
schemaserver readonly flag
1 parent d04d2d0 commit 7f6e7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (s *Server) createLocalSchemaStore(ctx context.Context) {
5252
store = schemaMemoryStore.New()
5353
case schemaConfig.StoreTypePersistent:
5454
var err error
55-
store, err = schemaPersistentStore.New(ctx, s.config.SchemaStore.Path, s.config.SchemaStore.Cache)
55+
store, err = schemaPersistentStore.New(ctx, s.config.SchemaStore.Path, s.config.SchemaStore.Cache, s.config.SchemaStore.ReadOnly)
5656
if err != nil {
5757
log.Errorf("failed to create a persistent schema store: %v", err)
5858
os.Exit(1)

0 commit comments

Comments
 (0)