Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
ddcd0620
Commit
ddcd0620
authored
10 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Fixed getuid() getgid() caching bug by removed the caching
parent
6c0a684d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
castor/legacymsg/RmcProxyTcpIp.cpp
+4
-6
4 additions, 6 deletions
castor/legacymsg/RmcProxyTcpIp.cpp
castor/legacymsg/RmcProxyTcpIp.hpp
+0
-10
0 additions, 10 deletions
castor/legacymsg/RmcProxyTcpIp.hpp
with
4 additions
and
16 deletions
castor/legacymsg/RmcProxyTcpIp.cpp
+
4
−
6
View file @
ddcd0620
...
...
@@ -34,8 +34,6 @@
// constructor
//------------------------------------------------------------------------------
castor
::
legacymsg
::
RmcProxyTcpIp
::
RmcProxyTcpIp
(
log
::
Logger
&
log
,
const
int
netTimeout
)
throw
()
:
m_uid
(
getuid
()),
m_gid
(
getgid
()),
m_log
(
log
),
m_netTimeout
(
netTimeout
)
{
}
...
...
@@ -131,8 +129,8 @@ void castor::legacymsg::RmcProxyTcpIp::mountTapeScsi(const std::string &vid, con
castor
::
utils
::
SmartFd
fd
(
connectToRmc
(
parsedSlot
.
rmcHostName
));
RmcMountMsgBody
body
;
body
.
uid
=
m_
uid
;
body
.
gid
=
m_
gid
;
body
.
uid
=
get
uid
()
;
body
.
gid
=
get
gid
()
;
castor
::
utils
::
copyString
(
body
.
vid
,
vid
.
c_str
());
body
.
drvOrd
=
parsedSlot
.
drvOrd
;
writeRmcMountMsg
(
fd
.
get
(),
body
);
...
...
@@ -246,8 +244,8 @@ void castor::legacymsg::RmcProxyTcpIp::unmountTapeScsi(const std::string &vid, c
castor
::
utils
::
SmartFd
fd
(
connectToRmc
(
parsedSlot
.
rmcHostName
));
RmcUnmountMsgBody
body
;
body
.
uid
=
m_
uid
;
body
.
gid
=
m_
gid
;
body
.
uid
=
get
uid
()
;
body
.
gid
=
get
gid
()
;
castor
::
utils
::
copyString
(
body
.
vid
,
vid
.
c_str
());
body
.
drvOrd
=
parsedSlot
.
drvOrd
;
body
.
force
=
0
;
...
...
This diff is collapsed.
Click to expand it.
castor/legacymsg/RmcProxyTcpIp.hpp
+
0
−
10
View file @
ddcd0620
...
...
@@ -107,16 +107,6 @@ protected:
*/
static
const
int
RMC_MSGBUFSIZ
=
256
;
/**
* The user ID of the current process.
*/
const
uid_t
m_uid
;
/**
* The group ID of the current process.
*/
const
gid_t
m_gid
;
/**
* The object representing the API of the CASTOR logging system.
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment