Skip to content

Commit

Permalink
CLEANUP: Refactor includes
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesecrust authored and jhpark816 committed Oct 23, 2024
1 parent 3294b5f commit 63c8a8d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 3 additions & 4 deletions lqdetect.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#include "lqdetect.h"

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <pthread.h>
#include <sys/time.h>
#include <assert.h>
#include <memcached/util.h>

#include "lqdetect.h"
#include "memcached/util.h"

#define LQ_THRESHOLD_DEFAULT 4000
#define LQ_QUERY_SIZE (64*2+64) /* bop get (longest query) : "<longest bkey>..<longest bkey> efilter <offset> <count> delete" */
Expand Down
7 changes: 5 additions & 2 deletions lqdetect.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#ifndef LQDETECT_H
#define LQDETECT_H

#include "memcached/extension_loggers.h"
#include "memcached/util.h"
#include <stdbool.h>
#include <stdint.h>

#include "memcached/types.h"
#include "memcached/extension.h"

#define DETECT_LONG_QUERY

Expand Down
1 change: 1 addition & 0 deletions memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
#include <stdarg.h>
#include <stddef.h>

#include "lqdetect.h"

/* Lock for global stats */
static pthread_mutex_t stats_lock = PTHREAD_MUTEX_INITIALIZER;
Expand Down
1 change: 0 additions & 1 deletion memcached.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "topkeys.h"
#include "mc_util.h"
#include "cmdlog.h"
#include "lqdetect.h"
#include "engine_loader.h"
#include "sasl_defs.h"

Expand Down

0 comments on commit 63c8a8d

Please sign in to comment.