You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-18 13:54:11 +03:00
Fixed parsing errors in messageFormat.h.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
// Copyright (C) 2019 MariaDB Corporaton
|
||||||
|
|
||||||
|
|
||||||
// Eventually this will define stuff client code will use to
|
// Eventually this will define stuff client code will use to
|
||||||
// construct messages to StorageManager.
|
// construct messages to StorageManager.
|
||||||
|
|
||||||
@@ -7,9 +10,20 @@
|
|||||||
namespace storagemanager
|
namespace storagemanager
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
|
||||||
|
// all msgs to and from StorageManager begin with this magic
|
||||||
static const uint SM_MSG_START=0xbf65a7e1;
|
static const uint SM_MSG_START=0xbf65a7e1;
|
||||||
|
|
||||||
|
// the unix socket StorageManager is listening on
|
||||||
static const char *socket_name = "\0storagemanager";
|
static const char *socket_name = "\0storagemanager";
|
||||||
|
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
|
|
||||||
|
// opcodes understood by StorageManager. Cast these to
|
||||||
|
// a uint8_t to use them.
|
||||||
enum Opcodes {
|
enum Opcodes {
|
||||||
OPEN,
|
OPEN,
|
||||||
READ,
|
READ,
|
||||||
@@ -36,7 +50,7 @@ enum Opcodes {
|
|||||||
OPEN
|
OPEN
|
||||||
----
|
----
|
||||||
command format:
|
command format:
|
||||||
opcode|4-byte filename length|filename|4-byte openmode
|
1-byte opcode|4-byte filename length|filename|4-byte openmode
|
||||||
|
|
||||||
response format:
|
response format:
|
||||||
struct stat
|
struct stat
|
||||||
@@ -44,7 +58,7 @@ enum Opcodes {
|
|||||||
READ
|
READ
|
||||||
----
|
----
|
||||||
command format:
|
command format:
|
||||||
opcode|4-byte filename length|filename|size_t count|off_t offset
|
1-byte opcode|4-byte filename length|filename|size_t count|off_t offset
|
||||||
|
|
||||||
response format:
|
response format:
|
||||||
data (size is stored in the return code)
|
data (size is stored in the return code)
|
||||||
@@ -52,28 +66,28 @@ enum Opcodes {
|
|||||||
WRITE
|
WRITE
|
||||||
-----
|
-----
|
||||||
command format:
|
command format:
|
||||||
opcode|4-byte filename length|filename|size_t count|off_t offset|data
|
1-byte opcode|4-byte filename length|filename|size_t count|off_t offset|data
|
||||||
|
|
||||||
response format:
|
response format:
|
||||||
|
|
||||||
APPEND
|
APPEND
|
||||||
------
|
------
|
||||||
command format:
|
command format:
|
||||||
opcode|4-byte filename length|filename|size_t count|data
|
1-byte opcode|4-byte filename length|filename|size_t count|data
|
||||||
|
|
||||||
response format:
|
response format:
|
||||||
|
|
||||||
UNLINK
|
UNLINK
|
||||||
------
|
------
|
||||||
command format:
|
command format:
|
||||||
opcode|4-byte filename length|filename
|
1-byte opcode|4-byte filename length|filename
|
||||||
|
|
||||||
response format:
|
response format:
|
||||||
|
|
||||||
STAT
|
STAT
|
||||||
----
|
----
|
||||||
command format:
|
command format:
|
||||||
opcode|4-byte filename length|filename
|
1-byte opcode|4-byte filename length|filename
|
||||||
|
|
||||||
response format:
|
response format:
|
||||||
struct stat
|
struct stat
|
||||||
@@ -81,14 +95,14 @@ enum Opcodes {
|
|||||||
TRUNCATE
|
TRUNCATE
|
||||||
--------
|
--------
|
||||||
command format:
|
command format:
|
||||||
opcode|4-byte filename length|filename|off64_t length
|
1-byte opcode|4-byte filename length|filename|off64_t length
|
||||||
|
|
||||||
response format:
|
response format:
|
||||||
|
|
||||||
LIST_DIRECTORY
|
LIST_DIRECTORY
|
||||||
--------------
|
--------------
|
||||||
command format:
|
command format:
|
||||||
opcode|4-byte path length|pathname
|
1-byte opcode|4-byte path length|pathname
|
||||||
|
|
||||||
response format:
|
response format:
|
||||||
4-byte num elements|
|
4-byte num elements|
|
||||||
@@ -97,9 +111,13 @@ enum Opcodes {
|
|||||||
PING
|
PING
|
||||||
----
|
----
|
||||||
command format:
|
command format:
|
||||||
opcode
|
1-byte opcode
|
||||||
|
|
||||||
reponse format:
|
reponse format:
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user