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
8894ef92
Commit
8894ef92
authored
Oct 26, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More new_oid
parent
27c0f9fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
wb/lib/wb/src/wb_db.cpp
wb/lib/wb/src/wb_db.cpp
+6
-6
wb/lib/wb/src/wb_dbms.cpp
wb/lib/wb/src/wb_dbms.cpp
+6
-6
No files found.
wb/lib/wb/src/wb_db.cpp
View file @
8894ef92
/*
* Proview $Id: wb_db.cpp,v 1.3
7 2007-10-25 11:08
:42 claes Exp $
* Proview $Id: wb_db.cpp,v 1.3
8 2007-10-26 06:27
:42 claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1145,12 +1145,12 @@ pwr_tOid wb_db::new_oid(wb_db_txn *txn, pwr_tOid oid)
rc
=
b
.
get
(
txn
,
offsetof
(
pwr_sRootVolume
,
NextOix
),
sizeof
(
pwr_tOix
),
&
nextoix
);
if
(
rc
)
printf
(
"wb_db::new_oid, b.get, rc %d
\n
"
,
rc
);
if
(
nextoix
<
woid
.
oix
+
1
)
if
(
!
rc
&&
nextoix
<
woid
.
oix
+
1
)
{
nextoix
=
woid
.
oix
+
1
;
rc
=
b
.
put
(
txn
,
offsetof
(
pwr_sRootVolume
,
NextOix
),
sizeof
(
pwr_tOix
),
&
nextoix
);
if
(
rc
)
printf
(
"wb_db::new_oid, b.put, rc %d
\n
"
,
rc
);
rc
=
b
.
put
(
txn
,
offsetof
(
pwr_sRootVolume
,
NextOix
),
sizeof
(
pwr_tOix
),
&
nextoix
);
if
(
rc
)
printf
(
"wb_db::new_oid, b.put, rc %d
\n
"
,
rc
);
}
return
woid
;
}
cout
<<
" Old oix found, force new "
<<
woid
.
oix
<<
" !
\n
"
;
...
...
wb/lib/wb/src/wb_dbms.cpp
View file @
8894ef92
/*
* Proview $Id: wb_dbms.cpp,v 1.
2 2007-10-25 11:13:22
claes Exp $
* Proview $Id: wb_dbms.cpp,v 1.
3 2007-10-26 06:26:15
claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -342,12 +342,12 @@ pwr_tOid wb_dbms::new_oid(wb_dbms_txn *txn, pwr_tOid oid)
rc
=
b
.
get
(
txn
,
offsetof
(
pwr_sRootVolume
,
NextOix
),
sizeof
(
pwr_tOix
),
&
nextoix
);
if
(
rc
)
printf
(
"wb_db::new_oid, b.get, rc %d
\n
"
,
rc
);
if
(
nextoix
<
woid
.
oix
+
1
)
if
(
!
rc
&&
nextoix
<
woid
.
oix
+
1
)
{
nextoix
=
woid
.
oix
+
1
;
rc
=
b
.
upd
(
txn
,
offsetof
(
pwr_sRootVolume
,
NextOix
),
sizeof
(
pwr_tOix
),
&
nextoix
);
if
(
rc
)
printf
(
"wb_dbms::new_oid, b.upd, rc %d
\n
"
,
rc
);
rc
=
b
.
upd
(
txn
,
offsetof
(
pwr_sRootVolume
,
NextOix
),
sizeof
(
pwr_tOix
),
&
nextoix
);
if
(
rc
)
printf
(
"wb_dbms::new_oid, b.upd, rc %d
\n
"
,
rc
);
}
return
woid
;
}
cout
<<
" Old oix found, force new "
<<
woid
.
oix
<<
" !
\n
"
;
...
...
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