From 59a2f2317c5df46469bfeb790163825dd98cdbab Mon Sep 17 00:00:00 2001 From: nebula-bots <88429921+nebula-bots@users.noreply.github.com> Date: Thu, 2 Sep 2021 17:00:20 +0800 Subject: [PATCH] Install metad configure files (#13) Co-authored-by: yixinglu <2520865+yixinglu@users.noreply.github.com> --- conf/CMakeLists.txt | 62 +++++++++++++++++++++------- scripts/CMakeLists.txt | 5 +++ src/graph/context/ExecutionContext.h | 12 +++--- 3 files changed, 58 insertions(+), 21 deletions(-) diff --git a/conf/CMakeLists.txt b/conf/CMakeLists.txt index f29160ffe19..a77dd41bd6c 100644 --- a/conf/CMakeLists.txt +++ b/conf/CMakeLists.txt @@ -1,18 +1,50 @@ +# Copyright (c) 2021 vesoft inc. All rights reserved. +# +# This source code is licensed under Apache 2.0 License, +# attached with Common Clause Condition 1.0, found in the LICENSES directory. + # These configuration files are for reference to generate your own customized ones. # Thus, they are installed as read-only, even for the owner. + install( - FILES - nebula-graphd.conf.default - nebula-graphd.conf.production - nebula-storaged.conf.default - nebula-storaged.conf.production - nebula-storaged-listener.conf.production - PERMISSIONS - OWNER_READ - GROUP_READ - WORLD_READ - DESTINATION - etc - COMPONENT - graph -) + FILES + nebula-graphd.conf.default + nebula-graphd.conf.production + PERMISSIONS + OWNER_READ + GROUP_READ + WORLD_READ + DESTINATION + etc + COMPONENT + graph + ) + +install( + FILES + nebula-metad.conf.default + nebula-metad.conf.production + PERMISSIONS + OWNER_READ + GROUP_READ + WORLD_READ + DESTINATION + etc + COMPONENT + meta + ) + +install( + FILES + nebula-storaged.conf.default + nebula-storaged.conf.production + nebula-storaged-listener.conf.production + PERMISSIONS + OWNER_READ + GROUP_READ + WORLD_READ + DESTINATION + etc + COMPONENT + storage + ) diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index fcc054b9b4d..b1c167ae3f3 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,3 +1,8 @@ +# Copyright (c) 2021 vesoft inc. All rights reserved. +# +# This source code is licensed under Apache 2.0 License, +# attached with Common Clause Condition 1.0, found in the LICENSES directory. + install( FILES nebula-storaged.service diff --git a/src/graph/context/ExecutionContext.h b/src/graph/context/ExecutionContext.h index be30ac0cef9..0bcbb3da1ff 100644 --- a/src/graph/context/ExecutionContext.h +++ b/src/graph/context/ExecutionContext.h @@ -21,12 +21,12 @@ class QueryInstance; * * The context is NOT thread-safe. The execution plan has to guarantee * all accesses to context are safe by pre-allocate all place for variables in - *semantic analysis and the single variable is accessed sequentially in runtime, - *so don't add/delete variable in runtime it's safe to access The life span of - *the context is same as the request. That means a new context object will be - *created as soon as the query engine receives the query request. The context - *object will be visible to the parser, the planner, the optimizer, and the - *executor. + * semantic analysis and the single variable is accessed sequentially at runtime, + * so don't add/delete variable at runtime it's safe to access The life span of + * the context is same as the request. That means a new context object will be + * created as soon as the query engine receives the query request. The context + * object will be visible to the parser, the planner, the optimizer, and the + * executor. * **************************************************************************/ class ExecutionContext {