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
6369d1c2
Commit
6369d1c2
authored
Jun 10, 2020
by
Claes
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb command 'create volume' for class volumes added
parent
d8a928ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
wb/lib/wb/src/wb_erep.cpp
wb/lib/wb/src/wb_erep.cpp
+33
-0
wb/lib/wb/src/wb_wnav_command.cpp
wb/lib/wb/src/wb_wnav_command.cpp
+2
-0
No files found.
wb/lib/wb/src/wb_erep.cpp
View file @
6369d1c2
...
...
@@ -1153,6 +1153,39 @@ wb_vrep* wb_erep::createVolume(pwr_tStatus* sts, pwr_tVid vid, pwr_tCid cid,
if
(
add
)
addDb
(
sts
,
vrepmem
);
return
vrepmem
;
}
else
if
(
type
==
ldh_eVolRep_Wbl
)
{
char
vidstr
[
40
];
pwr_tTime
t
;
char
classstr
[
40
];
cdh_VolumeIdToString
(
vidstr
,
sizeof
(
vidstr
),
vid
,
0
,
0
);
sprintf
(
vname
,
"$pwrp_db/%s.wb_load"
,
cdh_Low
(
name
));
dcli_translate_filename
(
vname
,
vname
);
switch
(
cid
)
{
case
pwr_eClass_ClassVolume
:
strcpy
(
classstr
,
"$ClassVolume"
);
break
;
case
pwr_eClass_RootVolume
:
strcpy
(
classstr
,
"$RootVolume"
);
break
;
default:
*
sts
=
LDH__NYI
;
return
0
;
}
if
(
ODD
(
dcli_file_time
(
vname
,
&
t
)))
{
*
sts
=
LDH__VOLIDALREXI
;
return
0
;
}
std
::
ofstream
ofd
(
vname
);
ofd
<<
"Volume "
<<
name
<<
" "
<<
classstr
<<
" "
<<
vidstr
<<
"
\n
"
<<
"EndVolume
\n
"
;
ofd
.
close
();
MsgWindow
::
message
(
'I'
,
"Database created"
,
vname
);
}
else
if
(
type
==
ldh_eVolRep_Db
)
{
sprintf
(
vname
,
"$pwrp_db/%s.db"
,
cdh_Low
(
name
));
dcli_translate_filename
(
vname
,
vname
);
...
...
wb/lib/wb/src/wb_wnav_command.cpp
View file @
6369d1c2
...
...
@@ -3625,6 +3625,8 @@ static int wnav_create_func(void* client_data, void* client_flag)
volrep
=
ldh_eVolRep_Db
;
else
if
(
str_NoCaseStrcmp
(
databasestr
,
"MYSQL"
)
==
0
)
volrep
=
ldh_eVolRep_Dbms
;
else
if
(
str_NoCaseStrcmp
(
databasestr
,
"WBLOAD"
)
==
0
)
volrep
=
ldh_eVolRep_Wbl
;
else
{
wnav
->
message
(
'E'
,
"Syntax error in database"
);
return
WNAV__QUAL
;
...
...
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