FAKE_CODE variables declared in header, defined in c-file
This commit is contained in:
@ -92,6 +92,15 @@
|
||||
#include <sys/un.h>
|
||||
#include <maxscale/alloc.h>
|
||||
|
||||
#if defined(FAKE_CODE)
|
||||
unsigned char dcb_fake_write_errno[10240];
|
||||
__int32_t dcb_fake_write_ev[10240];
|
||||
bool fail_next_backend_fd;
|
||||
bool fail_next_client_fd;
|
||||
int fail_next_accept;
|
||||
int fail_accept_errno;
|
||||
#endif /* FAKE_CODE */
|
||||
|
||||
/* The list of all DCBs */
|
||||
static LIST_CONFIG DCBlist =
|
||||
{LIST_TYPE_RECYCLABLE, sizeof(DCB), SPINLOCK_INIT};
|
||||
|
@ -293,12 +293,12 @@ typedef enum
|
||||
} DCB_USAGE;
|
||||
|
||||
#if defined(FAKE_CODE)
|
||||
unsigned char dcb_fake_write_errno[10240];
|
||||
__int32_t dcb_fake_write_ev[10240];
|
||||
bool fail_next_backend_fd;
|
||||
bool fail_next_client_fd;
|
||||
int fail_next_accept;
|
||||
int fail_accept_errno;
|
||||
extern unsigned char dcb_fake_write_errno[10240];
|
||||
extern __int32_t dcb_fake_write_ev[10240];
|
||||
extern bool fail_next_backend_fd;
|
||||
extern bool fail_next_client_fd;
|
||||
extern int fail_next_accept;
|
||||
extern int fail_accept_errno;
|
||||
#endif /* FAKE_CODE */
|
||||
|
||||
/* A few useful macros */
|
||||
|
Reference in New Issue
Block a user