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
e3f7211c
Commit
e3f7211c
authored
Apr 27, 2004
by
lw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cut did not update hierarchy.
parent
aab02b14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
wb/lib/wb/src/wb_session.cpp
wb/lib/wb/src/wb_session.cpp
+6
-5
wb/lib/wb/src/wb_vrepdb.cpp
wb/lib/wb/src/wb_vrepdb.cpp
+3
-0
No files found.
wb/lib/wb/src/wb_session.cpp
View file @
e3f7211c
...
...
@@ -375,7 +375,7 @@ bool wb_session::cutOset( pwr_sAttrRef *arp, bool keepref)
copyOset
(
arp
,
keepref
);
if
(
EVEN
(
m_sts
))
return
false
;
ldh_sEvent
*
ep
=
m_srep
->
eventStart
(
pwr_cNOid
,
ldh_eEvent_ObjectTreeDeleted
);
//
ldh_sEvent *ep = m_srep->eventStart( pwr_cNOid, ldh_eEvent_ObjectTreeDeleted);
pwr_sAttrRef
*
ap
=
arp
;
while
(
cdh_ObjidIsNotNull
(
ap
->
Objid
))
{
...
...
@@ -385,14 +385,15 @@ bool wb_session::cutOset( pwr_sAttrRef *arp, bool keepref)
continue
;
}
deleteFamily
(
o
);
ldh_sEvent
*
e
=
m_srep
->
eventStart
(
pwr_cNOid
,
ldh_eEvent_ObjectDeleted
);
m_srep
->
eventOldFamily
(
e
,
o
);
ldh_sEvent
*
ep
=
m_srep
->
eventStart
(
o
.
oid
(),
ldh_eEvent_ObjectDeleted
);
m_srep
->
eventOldFamily
(
ep
,
o
);
deleteFamily
(
o
);
m_srep
->
eventSend
(
ep
);
ap
++
;
}
m_srep
->
update
();
m_srep
->
eventSend
(
ep
);
//
m_srep->eventSend( ep);
return
true
;
}
...
...
wb/lib/wb/src/wb_vrepdb.cpp
View file @
e3f7211c
...
...
@@ -495,15 +495,18 @@ bool wb_vrepdb::deleteFamily(pwr_tStatus *sts, wb_orep *orp)
try
{
o
.
get
(
txn
);
printf
(
"wb_vrepdb::deleteFamily %s
\n
"
,
o
.
name
());
unadopt
(
txn
,
o
);
deleteFamilyMember
(
o
.
oid
(),
txn
);
txn
->
commit
(
0
);
printf
(
"wb_vrepdb::deleteFamily success
\n
"
);
return
true
;
}
catch
(
DbException
&
e
)
{
printf
(
"wb_vrepdb::deleteFamily failure, %s
\n
"
,
e
.
what
());
txn
->
abort
();
*
sts
=
2
;
// LDH__DB_ERROR
return
false
;
...
...
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