Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta-dcache-frontend
Commits
237cb3b1
Commit
237cb3b1
authored
Oct 28, 2021
by
Tigran Mkrtchyan
☕
Browse files
cta-dcache: prepare to be a git submodule
parent
931d67fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
gRPC/FrontendGRpcSvc.cpp
View file @
237cb3b1
...
...
@@ -18,10 +18,13 @@
#include
"FrontendGRpcSvc.h"
#include
"version.h"
static
const
std
::
string
CTA_DCACHE_VERSION
=
"cta-dcache-"
+
std
::
string
(
DCACHE_INTERFACE_VERSION
);
Status
CtaRpcImpl
::
Version
(
::
grpc
::
ServerContext
*
context
,
const
::
google
::
protobuf
::
Empty
*
request
,
::
cta
::
admin
::
Version
*
response
)
{
response
->
set_cta_version
(
CTA_VERSION
);
response
->
set_xrootd_ssi_protobuf_interface_version
(
"gPRC-frontend v0.0.1"
);
response
->
set_xrootd_ssi_protobuf_interface_version
(
CTA_DCACHE_VERSION
);
return
Status
::
OK
;
}
...
...
@@ -168,6 +171,8 @@ int main(const int argc, char *const *const argv) {
std
::
unique_ptr
<
cta
::
log
::
Logger
>
logger
=
std
::
unique_ptr
<
cta
::
log
::
Logger
>
(
new
log
::
StdoutLogger
(
"cta-dev"
,
"cta-grpc-frontend"
,
true
));
log
::
LogContext
lc
(
*
logger
);
lc
.
log
(
log
::
INFO
,
"Starting "
+
CTA_DCACHE_VERSION
);
// use castor config to avoid dependency on xroot-ssi
Configuration
config
(
"/etc/cta/cta.conf"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment