summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-08-22 14:43:49 +0200
committerJürg Billeter <j@bitron.ch>2019-08-22 14:45:05 +0200
commit5b0c6c1015a8b424be7d1695d7184f2505ad60c4 (patch)
treefce629c7609ecd8160568541a6b5a99c6f9dd809
parent3ea09c31b77d348ecc06d6980777f1b30652e8af (diff)
downloadbuildstream-5b0c6c1015a8b424be7d1695d7184f2505ad60c4.tar.gz
casserver.py: Fix write operations with bst-artifact-server
Allow gRPC communication in the bst-artifact-server main process.
-rw-r--r--src/buildstream/_cas/casserver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildstream/_cas/casserver.py b/src/buildstream/_cas/casserver.py
index 5a4c2b7ac..1835d118e 100644
--- a/src/buildstream/_cas/casserver.py
+++ b/src/buildstream/_cas/casserver.py
@@ -60,6 +60,10 @@ def create_server(repo, *, enable_push, quota):
cas = CASCache(os.path.abspath(repo), cache_quota=quota, protect_session_blobs=False)
try:
+ # Allow gRPC communication in main process as bst-artifact-server
+ # doesn't use forked subprocesses.
+ cas.notify_fork_disabled()
+
artifactdir = os.path.join(os.path.abspath(repo), 'artifacts', 'refs')
sourcedir = os.path.join(os.path.abspath(repo), 'source_protos')