Skip to content

Commit 14558e9

Browse files
FEATURE: bulk command logging for all commmand
1 parent be69b0c commit 14558e9

File tree

4 files changed

+157
-131
lines changed

4 files changed

+157
-131
lines changed

cmd_in_second.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ static int32_t buffer_flush()
156156
"Can't create buffer flush thread: %s\n", strerror(ret));
157157
}
158158

159-
160159
return ret;
161160
}
162161

@@ -177,7 +176,6 @@ static void buffer_add(const logtype* log)
177176

178177
buffer->ring[buffer->rear] = *log;
179178
buffer->rear = (buffer->rear+1) % buffer->capacity;
180-
181179
}
182180

183181
static bool is_cmd_to_log(const char* collection_name, const char* cmd)
@@ -194,7 +192,6 @@ bool cmd_in_second_write(const char* collection_name, const char* cmd, const cha
194192
timertype *timer = &this.timer;
195193

196194
logtype log = { {0}, {0} };
197-
198195
snprintf(log.client_ip, IP_LENGTH, "%s", client_ip);
199196
snprintf(log.key, KEY_LENGTH, "%s", key);
200197

0 commit comments

Comments
 (0)