Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
9206b737
Commit
9206b737
authored
8 years ago
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt_neth_acp fix for lists changed during remote request when gdb lock is removed
parent
3c827674
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
src/exe/rt_neth_acp/src/rt_neth_acp.c
src/exe/rt_neth_acp/src/rt_neth_acp.c
+9
-2
src/lib/rt/src/rt_cvolc.c
src/lib/rt/src/rt_cvolc.c
+2
-0
src/lib/rt/src/rt_cvolcm.c
src/lib/rt/src/rt_cvolcm.c
+6
-3
No files found.
src/exe/rt_neth_acp/src/rt_neth_acp.c
View file @
9206b737
...
...
@@ -326,9 +326,15 @@ lockMountServers (
vl
=
pool_Qsucc
(
NULL
,
gdbroot
->
pool
,
vl
)
)
{
vp
=
pool_Qitem
(
vl
,
gdb_sVolume
,
l
.
own_ll
);
if
(
vl
->
self
==
vl
->
flink
)
{
/* Connection lost and volume removed from own list */
errh_Error
(
"Volume not owned any more, %s"
,
vp
->
g
.
name
.
orig
);
return
;
}
if
(
!
vp
->
l
.
flags
.
b
.
isConnected
)
{
/* !!! Todo !!! How do we make this known ? */
errh_Error
(
"Volume not connected, %s"
,
vp
->
g
.
name
);
errh_Error
(
"Volume not connected, %s"
,
vp
->
g
.
name
.
orig
);
continue
;
}
...
...
@@ -349,7 +355,8 @@ lockMountServers (
}
msp
->
msor
=
pool_ItemReference
(
NULL
,
gdbroot
->
pool
,
op
);
op
->
l
.
flags
.
b
.
isMountServer
=
1
;
pool_QinsertPred
(
NULL
,
gdbroot
->
pool
,
&
msp
->
nodms_ll
,
&
np
->
nodms_lh
);
if
(
msp
->
nodms_ll
.
self
==
msp
->
nodms_ll
.
flink
&&
msp
->
nodms_ll
.
self
==
msp
->
nodms_ll
.
blink
)
pool_QinsertPred
(
NULL
,
gdbroot
->
pool
,
&
msp
->
nodms_ll
,
&
np
->
nodms_lh
);
if
(
0
)
errh_Info
(
"Locking object %s"
,
op
->
g
.
f
.
name
.
orig
);
cvolc_LockObject
(
&
sts
,
op
);
...
...
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_cvolc.c
View file @
9206b737
...
...
@@ -101,6 +101,8 @@ fetch (
net_Free
(
NULL
,
rsp
);
pwr_Return
(
NULL
,
sts
,
lsts
);
}
if
(
!
vp
->
l
.
flags
.
b
.
isConnected
)
pwr_Return
(
NULL
,
sts
,
GDH__CONNLOST
);
for
(
i
=
0
,
gop
=
&
rsp
->
g
[
0
];
i
<
rsp
->
count
;
i
++
,
gop
++
)
{
if
(
vp
->
g
.
vid
!=
gop
->
oid
.
vid
)
{
...
...
This diff is collapsed.
Click to expand it.
src/lib/rt/src/rt_cvolcm.c
View file @
9206b737
...
...
@@ -65,7 +65,7 @@ cvolcm_AddClassVolume(
const
net_sGvolume
*
vp
)
{
gdb_sCclassVolume
*
ccvp
;
gdb_sCclassVolume
*
ccvp
,
*
rp
;
gdb_sVolume
*
cvp
;
...
...
@@ -89,8 +89,11 @@ cvolcm_AddClassVolume(
ccvp
->
equalClasses
=
time_Acomp
(
&
ccvp
->
time
,
&
t
)
==
0
?
1
:
0
;
}
ccvp
=
hash_Insert
(
sts
,
gdbroot
->
ccvol_ht
,
ccvp
);
if
(
ccvp
==
NULL
)
errh_Bugcheck
(
GDH__WEIRD
,
"adding cached class volume"
);
rp
=
hash_Insert
(
sts
,
gdbroot
->
ccvol_ht
,
ccvp
);
if
(
rp
==
NULL
)
{
/* This was previously a bugcheck but obviously can occur */
pool_Free
(
NULL
,
gdbroot
->
pool
,
ccvp
);
return
;
}
pool_QinsertPred
(
NULL
,
gdbroot
->
pool
,
&
ccvp
->
ccvol_ll
,
&
np
->
ccvol_lh
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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