Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Commits
1c1e227c
Commit
1c1e227c
authored
1 year ago
by
Dmitry Ivanov
Committed by
Maksim Kaitmazian
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: Remove dead code
parent
81661f0c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!920
pgproto module
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pgproto/CMakeLists.txt
+7
-0
7 additions, 0 deletions
pgproto/CMakeLists.txt
pgproto/src/postgres/postgres.c
+1
-28
1 addition, 28 deletions
pgproto/src/postgres/postgres.c
pgproto/src/server/server.c
+1
-0
1 addition, 0 deletions
pgproto/src/server/server.c
with
9 additions
and
28 deletions
pgproto/CMakeLists.txt
+
7
−
0
View file @
1c1e227c
...
...
@@ -2,6 +2,13 @@ cmake_minimum_required(VERSION 2.8)
project
(
protocol C
)
add_compile_options
(
-Wunused-label
# -Wunused-macros
-Wunused-parameter
-Wunused-variable
)
set
(
CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
${
CMAKE_MODULE_PATH
}
)
set
(
CMAKE_INCLUDE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
${
CMAKE_INCLUDE_PATH
}
)
...
...
This diff is collapsed.
Click to expand it.
pgproto/src/postgres/postgres.c
+
1
−
28
View file @
1c1e227c
...
...
@@ -12,24 +12,6 @@
#include
"attributes.h"
#include
"tarantool/trivia/util.h"
/**
* Format of ReadyForQuery message.
* ReadyForQuery informs the frontend that it can safely send a new command.
*/
struct
ready_for_query_message
{
/** Type byte, equals 'Z' */
uint8_t
type
;
/** Packet length without the type byte, including len field itself. */
uint32_t
len
;
/**
* Current backend transaction status indicator.
* Possible values are 'I' if idle (not in a transaction block);
* 'T' if in a transaction block; or 'E' if in a failed transaction
* block (queries will be rejected until block is ended).
*/
uint8_t
transaction_status
;
};
/**
* Send ReadyForQuery message.
* ReadyForQuery informs the frontend that it can safely send a new command.
...
...
@@ -45,16 +27,6 @@ send_ready_for_query(struct pg_port *port)
pg_flush
(
port
);
}
/** Query message format. */
struct
query_message
{
/** Type byte. Equals 'Q' */
uint8_t
type
;
/** Message length, including the len field. */
uint32_t
len
;
/** The query string. */
const
char
*
query
;
};
#define COMPARE_AND_RETURN_IF_EQUALS(query, tag) \
if (strncasecmp(query, tag, strlen(tag)) == 0) \
return tag
...
...
@@ -267,6 +239,7 @@ send_data_row(struct pg_port *port, const char **data,
const
struct
row_description
*
row_desc
,
uint16_t
format
)
{
(
void
)
format
;
pg_begin_msg
(
port
,
'D'
);
pg_write_uint16
(
port
,
row_desc
->
natts
);
const
struct
pg_attribute
*
atts
=
row_desc
->
atts
;
...
...
This diff is collapsed.
Click to expand it.
pgproto/src/server/server.c
+
1
−
0
View file @
1c1e227c
...
...
@@ -270,6 +270,7 @@ server_should_try_again(int err)
static
int
server_worker
(
va_list
args
)
{
(
void
)
args
;
say_info
(
"server has been started"
);
while
(
!
fiber_is_cancelled
())
{
if
(
server_wait_for_connection
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment