Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c65f3238
Commit
c65f3238
authored
Nov 05, 2014
by
Andrew McDonnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed more cases for MDEV-6282
parent
e32dafe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
storage/oqgraph/ha_oqgraph.cc
storage/oqgraph/ha_oqgraph.cc
+13
-1
No files found.
storage/oqgraph/ha_oqgraph.cc
View file @
c65f3238
...
...
@@ -780,6 +780,10 @@ int ha_oqgraph::index_read(byte * buf, const byte * key, uint key_len, enum ha_r
int
ha_oqgraph
::
index_next_same
(
byte
*
buf
,
const
byte
*
key
,
uint
key_len
)
{
if
(
graph
->
get_thd
()
!=
current_thd
)
{
DBUG_PRINT
(
"oq-debug"
,
(
"index_next_same g->table->in_use: 0x%lx <-- current_thd 0x%lx"
,
(
long
)
graph
->
get_thd
(),
(
long
)
current_thd
));
graph
->
set_thd
(
current_thd
);
}
int
res
;
open_query
::
row
row
;
DBUG_ASSERT
(
inited
==
INDEX
);
...
...
@@ -843,7 +847,7 @@ int ha_oqgraph::index_read_idx(byte * buf, uint index, const byte * key,
uint
key_len
,
enum
ha_rkey_function
find_flag
)
{
if
(
graph
->
get_thd
()
!=
current_thd
)
{
DBUG_PRINT
(
"oq-debug"
,
(
"g->table->in_use: 0x%lx <-- current_thd 0x%lx"
,
(
long
)
graph
->
get_thd
(),
(
long
)
current_thd
));
DBUG_PRINT
(
"oq-debug"
,
(
"
index_read_idx
g->table->in_use: 0x%lx <-- current_thd 0x%lx"
,
(
long
)
graph
->
get_thd
(),
(
long
)
current_thd
));
graph
->
set_thd
(
current_thd
);
}
...
...
@@ -1040,6 +1044,10 @@ int ha_oqgraph::rnd_init(bool scan)
int
ha_oqgraph
::
rnd_next
(
byte
*
buf
)
{
if
(
graph
->
get_thd
()
!=
current_thd
)
{
DBUG_PRINT
(
"oq-debug"
,
(
"rnd_next g->table->in_use: 0x%lx <-- current_thd 0x%lx"
,
(
long
)
graph
->
get_thd
(),
(
long
)
current_thd
));
graph
->
set_thd
(
current_thd
);
}
int
res
;
open_query
::
row
row
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
...
...
@@ -1051,6 +1059,10 @@ int ha_oqgraph::rnd_next(byte *buf)
int
ha_oqgraph
::
rnd_pos
(
byte
*
buf
,
byte
*
pos
)
{
if
(
graph
->
get_thd
()
!=
current_thd
)
{
DBUG_PRINT
(
"oq-debug"
,
(
"rnd_pos g->table->in_use: 0x%lx <-- current_thd 0x%lx"
,
(
long
)
graph
->
get_thd
(),
(
long
)
current_thd
));
graph
->
set_thd
(
current_thd
);
}
int
res
;
open_query
::
row
row
;
if
(
!
(
res
=
graph
->
fetch_row
(
row
,
pos
)))
...
...
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