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
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
nexedi
MariaDB
Commits
58e21e82
Commit
58e21e82
authored
Jan 22, 2006
by
brian@zim.tangent.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small cleanups to remove old or un-needed methods.
parent
b4055d24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
101 deletions
+0
-101
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+0
-91
storage/csv/ha_tina.h
storage/csv/ha_tina.h
+0
-10
No files found.
storage/csv/ha_tina.cc
View file @
58e21e82
...
@@ -764,77 +764,6 @@ int ha_tina::delete_row(const byte * buf)
...
@@ -764,77 +764,6 @@ int ha_tina::delete_row(const byte * buf)
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
/*
Fill buf with value from key. Simply this is used for a single index read
with a key.
*/
int
ha_tina
::
index_read
(
byte
*
buf
,
const
byte
*
key
,
uint
key_len
__attribute__
((
unused
)),
enum
ha_rkey_function
find_flag
__attribute__
((
unused
)))
{
DBUG_ENTER
(
"ha_tina::index_read"
);
DBUG_ASSERT
(
0
);
DBUG_RETURN
(
HA_ADMIN_NOT_IMPLEMENTED
);
}
/*
Fill buf with value from key. Simply this is used for a single index read
with a key.
Whatever the current key is we will use it. This is what will be in "index".
*/
int
ha_tina
::
index_read_idx
(
byte
*
buf
,
uint
index
,
const
byte
*
key
,
uint
key_len
__attribute__
((
unused
)),
enum
ha_rkey_function
find_flag
__attribute__
((
unused
)))
{
DBUG_ENTER
(
"ha_tina::index_read_idx"
);
DBUG_ASSERT
(
0
);
DBUG_RETURN
(
HA_ADMIN_NOT_IMPLEMENTED
);
}
/*
Read the next position in the index.
*/
int
ha_tina
::
index_next
(
byte
*
buf
)
{
DBUG_ENTER
(
"ha_tina::index_next"
);
DBUG_ASSERT
(
0
);
DBUG_RETURN
(
HA_ADMIN_NOT_IMPLEMENTED
);
}
/*
Read the previous position in the index.
*/
int
ha_tina
::
index_prev
(
byte
*
buf
)
{
DBUG_ENTER
(
"ha_tina::index_prev"
);
DBUG_ASSERT
(
0
);
DBUG_RETURN
(
HA_ADMIN_NOT_IMPLEMENTED
);
}
/*
Read the first position in the index
*/
int
ha_tina
::
index_first
(
byte
*
buf
)
{
DBUG_ENTER
(
"ha_tina::index_first"
);
DBUG_ASSERT
(
0
);
DBUG_RETURN
(
HA_ADMIN_NOT_IMPLEMENTED
);
}
/*
Read the last position in the index
With this we don't need to do a filesort() with index.
We just read the last row and call previous.
*/
int
ha_tina
::
index_last
(
byte
*
buf
)
{
DBUG_ENTER
(
"ha_tina::index_last"
);
DBUG_ASSERT
(
0
);
DBUG_RETURN
(
HA_ADMIN_NOT_IMPLEMENTED
);
}
/*
/*
All table scans call this first.
All table scans call this first.
...
@@ -975,17 +904,6 @@ int ha_tina::extra(enum ha_extra_function operation)
...
@@ -975,17 +904,6 @@ int ha_tina::extra(enum ha_extra_function operation)
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
/*
This is no longer used.
*/
int
ha_tina
::
reset
(
void
)
{
DBUG_ENTER
(
"ha_tina::reset"
);
ha_tina
::
extra
(
HA_EXTRA_RESET
);
DBUG_RETURN
(
0
);
}
/*
/*
Called after each table scan. In particular after deletes,
Called after each table scan. In particular after deletes,
and updates. In the last case we employ chain of deleted
and updates. In the last case we employ chain of deleted
...
@@ -1063,15 +981,6 @@ int ha_tina::delete_all_rows()
...
@@ -1063,15 +981,6 @@ int ha_tina::delete_all_rows()
DBUG_RETURN
(
rc
);
DBUG_RETURN
(
rc
);
}
}
/*
Always called by the start of a transaction (or by "lock tables");
*/
int
ha_tina
::
external_lock
(
THD
*
thd
,
int
lock_type
)
{
DBUG_ENTER
(
"ha_tina::external_lock"
);
DBUG_RETURN
(
0
);
// No external locking
}
/*
/*
Called by the database to lock the table. Keep in mind that this
Called by the database to lock the table. Keep in mind that this
is an internal lock.
is an internal lock.
...
...
storage/csv/ha_tina.h
View file @
58e21e82
...
@@ -113,14 +113,6 @@ class ha_tina: public handler
...
@@ -113,14 +113,6 @@ class ha_tina: public handler
int
write_row
(
byte
*
buf
);
int
write_row
(
byte
*
buf
);
int
update_row
(
const
byte
*
old_data
,
byte
*
new_data
);
int
update_row
(
const
byte
*
old_data
,
byte
*
new_data
);
int
delete_row
(
const
byte
*
buf
);
int
delete_row
(
const
byte
*
buf
);
int
index_read
(
byte
*
buf
,
const
byte
*
key
,
uint
key_len
,
enum
ha_rkey_function
find_flag
);
int
index_read_idx
(
byte
*
buf
,
uint
idx
,
const
byte
*
key
,
uint
key_len
,
enum
ha_rkey_function
find_flag
);
int
index_next
(
byte
*
buf
);
int
index_prev
(
byte
*
buf
);
int
index_first
(
byte
*
buf
);
int
index_last
(
byte
*
buf
);
int
rnd_init
(
bool
scan
=
1
);
int
rnd_init
(
bool
scan
=
1
);
int
rnd_next
(
byte
*
buf
);
int
rnd_next
(
byte
*
buf
);
int
rnd_pos
(
byte
*
buf
,
byte
*
pos
);
int
rnd_pos
(
byte
*
buf
,
byte
*
pos
);
...
@@ -128,8 +120,6 @@ class ha_tina: public handler
...
@@ -128,8 +120,6 @@ class ha_tina: public handler
void
position
(
const
byte
*
record
);
void
position
(
const
byte
*
record
);
void
info
(
uint
);
void
info
(
uint
);
int
extra
(
enum
ha_extra_function
operation
);
int
extra
(
enum
ha_extra_function
operation
);
int
reset
(
void
);
int
external_lock
(
THD
*
thd
,
int
lock_type
);
int
delete_all_rows
(
void
);
int
delete_all_rows
(
void
);
int
create
(
const
char
*
name
,
TABLE
*
form
,
HA_CREATE_INFO
*
create_info
);
int
create
(
const
char
*
name
,
TABLE
*
form
,
HA_CREATE_INFO
*
create_info
);
...
...
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