Skip to content

Commit 895acaa

Browse files
committed
schemaserver readonly flag
1 parent d04d2d0 commit 895acaa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
github.com/prometheus/client_golang v1.23.2
2121
github.com/scrapli/scrapligo v1.3.3
2222
github.com/sdcio/cache v0.0.38
23-
github.com/sdcio/schema-server v0.0.32
23+
github.com/sdcio/schema-server v0.0.33
2424
github.com/sdcio/sdc-protos v0.0.46
2525
github.com/sdcio/yang-parser v0.0.12
2626
github.com/sirupsen/logrus v1.9.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ github.com/sdcio/cache v0.0.38 h1:8meykZC/DAgzKI+R3GtZvTs0/OXWRCeNN5mxVKG0Ba8=
185185
github.com/sdcio/cache v0.0.38/go.mod h1:PHJd4pTmfFZBLdPohtXJAVBNmAKhhKdZHTi3MejGrk0=
186186
github.com/sdcio/goyang v1.6.2-2 h1:qfeUKBmoKpiKAruuEc3+V8wgHKP/n1jRDEnTy23knV8=
187187
github.com/sdcio/goyang v1.6.2-2/go.mod h1:5WolITjek1NF8yrNERyVZ7jqjOClJTpO8p/+OwmETM4=
188-
github.com/sdcio/schema-server v0.0.32 h1:5y7M7dNSvsz5mXjHquMWW1aGYt5MiveX2yDWP6pYgyY=
189-
github.com/sdcio/schema-server v0.0.32/go.mod h1:q8leN1KhRNTnnqf6yxvkDk5tFl6DAsHcl81usVgYpoI=
188+
github.com/sdcio/schema-server v0.0.33 h1:RTeQMIchynAPSQaf61CZBgYHCCpsyDLEAWJn+ZKImIo=
189+
github.com/sdcio/schema-server v0.0.33/go.mod h1:q8leN1KhRNTnnqf6yxvkDk5tFl6DAsHcl81usVgYpoI=
190190
github.com/sdcio/sdc-protos v0.0.46 h1:NsDdQrcPXPktLI7ZHBR6mA82AEYaFjdBYiLzJcuF55k=
191191
github.com/sdcio/sdc-protos v0.0.46/go.mod h1:Rm51ch3DgeZ9rImQ/A3lzsNKK5DPGgd1ONULPpgTw8A=
192192
github.com/sdcio/yang-parser v0.0.12 h1:RSSeqfAOIsJx5Lno5u4/ezyOmQYUduQ22rBfU/mtpJ4=

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)