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
f0242605
Commit
f0242605
authored
Sep 19, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in update classes
parent
260e8b64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
wb/lib/wb/src/wb_vrepdb.cpp
wb/lib/wb/src/wb_vrepdb.cpp
+16
-8
No files found.
wb/lib/wb/src/wb_vrepdb.cpp
View file @
f0242605
/*
/*
* Proview $Id: wb_vrepdb.cpp,v 1.5
3 2007-07-12 12:20:15
claes Exp $
* Proview $Id: wb_vrepdb.cpp,v 1.5
4 2007-09-19 15:17:32
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -1835,9 +1835,11 @@ int wb_vrepdb::updateArefs(pwr_tOid oid, pwr_tCid cid)
...
@@ -1835,9 +1835,11 @@ int wb_vrepdb::updateArefs(pwr_tOid oid, pwr_tCid cid)
pwr_sAttrRef
*
arp
=
(
pwr_sAttrRef
*
)(
p
+
ap
->
key
.
offset
);
pwr_sAttrRef
*
arp
=
(
pwr_sAttrRef
*
)(
p
+
ap
->
key
.
offset
);
wb_db_ohead
aohead
(
m_db
,
m_db
->
m_txn
,
arp
->
Objid
);
wb_db_ohead
aohead
(
m_db
,
m_db
->
m_txn
,
arp
->
Objid
);
wb_cdrep
*
n_cdrep
=
m_erep
->
merep
()
->
cdrep
(
&
sts
,
aohead
.
cid
());
wb_cdrep
*
n_cdrep
=
m_erep
->
merep
()
->
cdrep
(
&
sts
,
aohead
.
cid
());
if
(
EVEN
(
sts
))
printf
(
"n_cdrep sts %d"
,
sts
);
wb_bdrep
*
n_bdrep
;
if
(
EVEN
(
sts
))
wb_bdrep
*
n_bdrep
=
n_cdrep
->
bdrep
(
&
sts
,
ap
->
key
.
bix
);
printf
(
"cdrep sts %d"
,
sts
);
else
n_bdrep
=
n_cdrep
->
bdrep
(
&
sts
,
ap
->
key
.
bix
);
if
(
EVEN
(
sts
))
{
if
(
EVEN
(
sts
))
{
ap
=
(
sAref
*
)
tree_FindSuccessor
(
&
sts
,
m_aref_th
,
&
ap
->
key
);
ap
=
(
sAref
*
)
tree_FindSuccessor
(
&
sts
,
m_aref_th
,
&
ap
->
key
);
continue
;
continue
;
...
@@ -1938,8 +1940,12 @@ pwr_tStatus wb_vrepdb::updateMeta()
...
@@ -1938,8 +1940,12 @@ pwr_tStatus wb_vrepdb::updateMeta()
wb_db_class_iterator
ip
(
m_db
);
wb_db_class_iterator
ip
(
m_db
);
for
(
ip
.
first
();
!
ip
.
atEnd
();
ip
.
succClass
())
{
for
(
ip
.
first
();
!
ip
.
atEnd
();
ip
.
succClass
())
{
nClass
+=
checkClass
(
ip
.
cid
());
try
{
checkAttributes
(
ip
.
cid
());
nClass
+=
checkClass
(
ip
.
cid
());
checkAttributes
(
ip
.
cid
());
}
catch
(
wb_error
&
e
)
{
printf
(
"vrepdb::updateMeta: %s
\n
"
,
e
.
what
().
c_str
());
}
}
}
for
(
ip
.
first
();
!
ip
.
atEnd
();
ip
.
succObject
())
{
for
(
ip
.
first
();
!
ip
.
atEnd
();
ip
.
succObject
())
{
pwr_tCid
cid
=
ip
.
cid
();
pwr_tCid
cid
=
ip
.
cid
();
...
@@ -2054,8 +2060,10 @@ wb_vrepdb::checkClass(pwr_tCid cid)
...
@@ -2054,8 +2060,10 @@ wb_vrepdb::checkClass(pwr_tCid cid)
o_time
=
o_crep
->
ohTime
();
o_time
=
o_crep
->
ohTime
();
n_crep
=
m_erep
->
merep
()
->
cdrep
(
&
sts
,
cid
);
n_crep
=
m_erep
->
merep
()
->
cdrep
(
&
sts
,
cid
);
if
(
n_crep
!=
0
)
if
(
n_crep
==
0
)
n_time
=
n_crep
->
ohTime
();
throw
wb_error
(
LDH__NOSUCHCLASS
);
n_time
=
n_crep
->
ohTime
();
if
(
time_Acomp
(
&
o_time
,
&
n_time
)
!=
0
)
{
if
(
time_Acomp
(
&
o_time
,
&
n_time
)
!=
0
)
{
sClass
*
ccp
=
(
sClass
*
)
tree_Insert
(
&
sts
,
m_class_th
,
&
cid
);
sClass
*
ccp
=
(
sClass
*
)
tree_Insert
(
&
sts
,
m_class_th
,
&
cid
);
...
...
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