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
42588f68
Commit
42588f68
authored
Nov 07, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Symbolic refererces and extern refrences was not updated
parent
3e56f9fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
6 deletions
+27
-6
wb/lib/wb/src/wb_vrepdb.cpp
wb/lib/wb/src/wb_vrepdb.cpp
+27
-6
No files found.
wb/lib/wb/src/wb_vrepdb.cpp
View file @
42588f68
/*
* Proview $Id: wb_vrepdb.cpp,v 1.5
8 2007-11-06 16:57:55
claes Exp $
* Proview $Id: wb_vrepdb.cpp,v 1.5
9 2007-11-07 18:07:51
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -37,6 +37,7 @@
#include "wb_dblock.h"
#include "co_msgwindow.h"
#include "wb_vrepwbl.h"
#include "wb_volume.h"
typedef
struct
sArefKey
{
...
...
@@ -1847,16 +1848,36 @@ int wb_vrepdb::updateArefs(pwr_tOid oid, pwr_tCid cid)
try
{
pwr_sAttrRef
*
arp
=
(
pwr_sAttrRef
*
)(
p
+
ap
->
key
.
offset
);
pwr_tCid
arp_cid
;
if
(
cdh_ObjidIsEqual
(
arp
->
Objid
,
pwr_cNObjid
))
{
ap
=
(
sAref
*
)
tree_FindSuccessor
(
&
sts
,
m_aref_th
,
&
ap
->
key
);
continue
;
}
wb_db_ohead
aohead
(
m_db
,
m_db
->
m_txn
,
arp
->
Objid
);
wb_cdrep
*
n_cdrep
=
m_erep
->
merep
()
->
cdrep
(
&
sts
,
aohead
.
cid
());
if
(
arp
->
Objid
.
vid
==
m_vid
)
{
wb_db_ohead
aohead
(
m_db
,
m_db
->
m_txn
,
arp
->
Objid
);
arp_cid
=
aohead
.
cid
();
}
else
if
(
ldh_isSymbolicVid
(
arp
->
Objid
.
vid
))
arp_cid
=
arp
->
Objid
.
oix
;
else
arp_cid
=
arp
->
Body
&
~
7
;
wb_cdrep
*
n_cdrep
=
m_erep
->
merep
()
->
cdrep
(
&
sts
,
arp_cid
);
wb_bdrep
*
n_bdrep
;
pwr_eBix
bix
=
pwr_eBix_rt
;
if
(
EVEN
(
sts
))
printf
(
"cdrep sts %d"
,
sts
);
if
(
EVEN
(
sts
))
{
pwr_tAttrRef
a
;
a
.
Objid
=
oid
;
a
.
Offset
=
ap
->
key
.
offset
;
a
.
Size
=
sizeof
(
pwr_tAttrRef
);
a
.
Body
=
cid
|
bix
;
wb_volume
v
(
this
);
wb_attribute
attr
=
v
.
attribute
(
&
a
);
if
(
attr
)
printf
(
"** Corrupt reference in %s
\n
"
,
attr
.
longName
().
c_str
());
}
else
{
bix
=
(
pwr_eBix
)(
arp
->
Body
&
7
);
if
(
bix
!=
pwr_eBix_dev
)
...
...
@@ -1869,7 +1890,7 @@ int wb_vrepdb::updateArefs(pwr_tOid oid, pwr_tCid cid)
}
sAttributeKey
k
;
k
.
cid
=
a
ohead
.
cid
()
;
k
.
cid
=
a
rp_cid
;
k
.
bix
=
bix
;
k
.
oStart
=
arp
->
Offset
;
k
.
oEnd
=
arp
->
Offset
+
arp
->
Size
-
1
;
...
...
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