Skip to content

Commit

Permalink
CLEANUP: Refactor cmdlog include
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesecrust authored and jhpark816 committed Oct 24, 2024
1 parent 63c8a8d commit 82033b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 3 additions & 5 deletions cmdlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "cmdlog.h"

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

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

#define CMDLOG_INPUT_SIZE 400
#define CMDLOG_BUFFER_SIZE (10 * 1024 * 1024) /* 10MB */
Expand Down
4 changes: 3 additions & 1 deletion cmdlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#ifndef CMDLOG_H
#define CMDLOG_H

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

#include "memcached/extension.h"

#define COMMAND_LOGGING

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 "cmdlog.h"
#include "lqdetect.h"

/* Lock for global stats */
Expand Down
1 change: 0 additions & 1 deletion memcached.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "cache.h"
#include "topkeys.h"
#include "mc_util.h"
#include "cmdlog.h"
#include "engine_loader.h"
#include "sasl_defs.h"

Expand Down

0 comments on commit 82033b7

Please sign in to comment.