图片修改
This commit is contained in:
@@ -605,6 +605,7 @@ void build_thread_to_sync(const uint8_t *offset, struct conn* conn){
|
||||
pthread_mutex_lock(&conn->g_sync_lock);
|
||||
g_slavefd = conn->fd;
|
||||
g_offset = (uint64_t)off64;
|
||||
printf("offset:%ld\n", off64);
|
||||
|
||||
conn->wlength = 0;
|
||||
pthread_mutex_unlock(&conn->g_sync_lock);
|
||||
@@ -683,6 +684,14 @@ void dest_memory_pool(void){
|
||||
* ./kvstore slave 7000 192.168.10.129 8888
|
||||
*/
|
||||
int main(int argc, char *argv[]) {
|
||||
printf("memory type: ");
|
||||
if(MEMORY_SELECT_MALLOC == MEMORY_USE_DEFAULT){
|
||||
printf("default\n");
|
||||
}else if(MEMORY_SELECT_MALLOC == MEMORY_USE_MYMALLOC){
|
||||
printf("my memory pool\n");
|
||||
}else if(MEMORY_SELECT_MALLOC == MEMORY_USE_JEMALLOC){
|
||||
printf("jemalloc\n");
|
||||
}
|
||||
|
||||
if (argc < 3) return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user