Skip to content

Commit 646dee1

Browse files
authored
fixes #1170 (#1171)
1 parent 2eec1d4 commit 646dee1

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

gateway/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM golang:1.13.5-alpine3.10
22
WORKDIR /build
33

44
# Take the current space cloud version as a argument
5-
ARG SC_VERSION=0.18.3
5+
ARG SC_VERSION=0.18.4
66

77
# Copy all the source files
88
COPY . .
@@ -16,7 +16,7 @@ RUN GOOS=linux CGO_ENABLED=0 go build -a -ldflags '-s -w -extldflags "-static"'
1616
RUN echo $SC_VERSION && wget https://storage.googleapis.com/space-cloud/mission-control/mission-control-v$SC_VERSION.zip && unzip mission-control-v$SC_VERSION.zip
1717

1818
FROM alpine:3.10
19-
ARG SC_VERSION=0.18.3
19+
ARG SC_VERSION=0.18.4
2020

2121
RUN apk --no-cache add ca-certificates
2222

gateway/modules/crud/crud.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type Module struct {
4444

4545
type loader struct {
4646
loaderMap map[string]*dataloader.Loader
47-
dataLoaderLock sync.Mutex
47+
dataLoaderLock sync.RWMutex
4848
}
4949

5050
// Crud abstracts the implementation crud operations of databases

gateway/modules/crud/dataloader.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ func (holder *resultsHolder) fillErrorMessage(err error) {
8888
}
8989

9090
func (m *Module) getLoader(key string) (*dataloader.Loader, bool) {
91-
// Rlock is not required since the function calling has already acquired Rlock
91+
m.dataLoader.dataLoaderLock.RLock()
92+
defer m.dataLoader.dataLoaderLock.RUnlock()
9293
loader, ok := m.dataLoader.loaderMap[key]
9394
return loader, ok
9495
}

gateway/utils/constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
)
66

77
// BuildVersion is the current version of Space Cloud
8-
const BuildVersion = "0.18.3"
8+
const BuildVersion = "0.18.4"
99

1010
const (
1111
// One operation returns a single document from the database

install-manifests/kubernetes/local/space-cloud.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ spec:
163163
containers:
164164
- name: runner
165165
command: ["./app", "start"]
166-
image: spaceuptech/runner:0.18.3
166+
image: spaceuptech/runner:0.18.4
167167
imagePullPolicy: IfNotPresent # IfNotPresent | Always
168168
env:
169169
- name: "LOG_LEVEL"
@@ -341,7 +341,7 @@ spec:
341341
containers:
342342
- name: gateway
343343
command: ["./app", "run"]
344-
image: spaceuptech/gateway:0.18.3
344+
image: spaceuptech/gateway:0.18.4
345345
imagePullPolicy: IfNotPresent # IfNotPresent | Always
346346
env:
347347
- name: "NODE_ID"

install-manifests/kubernetes/prod/space-cloud.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ spec:
163163
containers:
164164
- name: runner
165165
command: ["./app", "start"]
166-
image: spaceuptech/runner:0.18.3
166+
image: spaceuptech/runner:0.18.4
167167
imagePullPolicy: IfNotPresent # IfNotPresent | Always
168168
env:
169169
- name: "LOG_LEVEL"
@@ -345,7 +345,7 @@ spec:
345345
containers:
346346
- name: gateway
347347
command: ["./app", "run"]
348-
image: spaceuptech/gateway:0.18.3
348+
image: spaceuptech/gateway:0.18.4
349349
imagePullPolicy: IfNotPresent # IfNotPresent | Always
350350
env:
351351
- name: "NODE_ID"

runner/model/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package model
22

33
// Version represents the current runner version
4-
const Version string = "v0.18.3"
4+
const Version string = "v0.18.4"

space-cli/cmd/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package cmd
22

3-
const version string = "0.18.3"
3+
const version string = "0.18.4"

0 commit comments

Comments
 (0)