Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
c0fc88b2
Commit
c0fc88b2
authored
Oct 14, 2009
by
Pavel Vaynerman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.eter:/projects/uniset
parents
58c22b47
a794503c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
JrnTest.cc
Utilities/JrnTests/JrnTest.cc
+5
-1
TableBlockStorage.cc
src/Various/TableBlockStorage.cc
+2
-0
No files found.
Utilities/JrnTests/JrnTest.cc
View file @
c0fc88b2
...
...
@@ -34,7 +34,7 @@
#include <UniSetTypes.h>
int
seek
=
0
;
int
b_size
=
100
000
;
int
b_size
=
25
000
;
int
bj_size
=
1300000
;
void
testTable1
(
void
)
{
...
...
@@ -80,6 +80,9 @@ void testTable1(void)
bool
testTable2
(
void
)
{
char
*
val
=
new
char
[
40
];
TableBlockStorage
t0
;
t0
.
create
(
"small_file.test"
,
b_size
,
4
,
40
,
100
,
5
,
28
,
0
);
t0
.
open
(
"small_file.test"
,
b_size
,
4
,
40
,
100
,
5
,
28
,
0
);
TableBlockStorage
t
;
//t = new TableBlockStorage();
t
.
create
(
"big_file.test"
,
b_size
,
4
,
40
,
100
,
5
,
28
,
0
);
...
...
@@ -91,6 +94,7 @@ bool testTable2(void)
if
(
t
.
findKeyValue
(
&
i
,
val
)
!=
0
)
printf
(
"%s, "
,
val
);
}
printf
(
"
\n
"
);
t0
.
addRow
((
char
*
)
&
i
,
val
);
if
(
t
.
getCurBlock
()
!=
0
)
{
delete
val
;
...
...
src/Various/TableBlockStorage.cc
View file @
c0fc88b2
...
...
@@ -189,6 +189,8 @@ bool TableBlockStorage::open(const char* name, int byte_sz, int key_sz, int inf_
if
(
t
->
count
>=
0
)
break
;
}
if
(
t
->
count
<
0
)
cur_block
=
0
;
/*! */
fseek
(
file
,
seekpos
+
(
cur_block
*
block_size
)
*
(
full_size
),
0
);
...
...
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