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
8d55ab5e
Commit
8d55ab5e
authored
Dec 17, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fetch volref name from merep
parent
27b1d679
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
wb/lib/wb/src/wb_dbs.cpp
wb/lib/wb/src/wb_dbs.cpp
+9
-3
No files found.
wb/lib/wb/src/wb_dbs.cpp
View file @
8d55ab5e
...
...
@@ -19,6 +19,8 @@ This module contains functions to create database snapshot files. */
#include "co_dbs.h"
#include "wb_dbs.h"
#include "wb_vrep.h"
#include "wb_mvrep.h"
#include "wb_merep.h"
static
int
comp_dbs_name
(
tree_sTable
*
tp
,
tree_sNode
*
x
,
tree_sNode
*
y
);
...
...
@@ -579,7 +581,11 @@ wb_dbs::writeSectVolref()
if
(
vid
.
pwr
!=
m_volume
.
vid
)
{
printf
(
"volref: %d.%d.%d.%d
\n
"
,
vid
.
v
.
vid_3
,
vid
.
v
.
vid_2
,
vid
.
v
.
vid_1
,
vid
.
v
.
vid_0
);
vp
->
vid
=
vid
.
pwr
;
strcpy
(
vp
->
name
,
"not_yet_known"
);
wb_mvrep
*
mvrep
=
m_v
->
merep
()
->
volume
(
&
sts
,
vp
->
vid
);
if
(
EVEN
(
sts
))
throw
wb_error_str
(
"Metavolume not found"
);
strcpy
(
vp
->
name
,
mvrep
->
name
());
vp
->
cid
=
0
;
vp
->
time
.
tv_sec
=
0
;
vp
->
time
.
tv_nsec
=
0
;
...
...
@@ -726,7 +732,7 @@ wb_dbs::importDbody(pwr_tOid oid, size_t size, void *body)
}
if
(
oep
->
dbody
.
size
==
0
)
{
if
(
body
!=
0
)
printf
(
"error body size
\n
"
);
if
(
size
!=
0
)
printf
(
"error dbody size %d %s
\n
"
,
size
,
cdh_ObjidToString
(
0
,
oid
,
0
)
);
return
true
;
}
...
...
@@ -786,7 +792,7 @@ wb_dbs::importRbody(pwr_tOid oid, size_t size, void *body)
getAliasServer
(
oep
,
body
);
if
(
oep
->
rbody
.
size
==
0
)
{
if
(
body
!=
0
)
printf
(
"error body size
\n
"
);
if
(
size
!=
0
)
printf
(
"error rbody size %d %s
\n
"
,
size
,
cdh_ObjidToString
(
0
,
oid
,
0
)
);
return
true
;
}
...
...
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