ebpf的主从同步实现,QPS测试与内存池QPS测试。
This commit is contained in:
@@ -310,13 +310,13 @@ int kvs_hash_save(iouring_ctx_t *uring, kvs_hash_t *inst, const char* filename){
|
||||
task_t *t = submit_write(uring, fd, bufs, lens, count, current_off);
|
||||
|
||||
if (!t) { close(fd); return -4; }
|
||||
int res = task_wait(t);
|
||||
task_destroy(t);
|
||||
// int res = task_wait(t);
|
||||
// task_destroy(t);
|
||||
|
||||
if (res < 0) {
|
||||
close(fd);
|
||||
return -5;
|
||||
}
|
||||
// if (res < 0) {
|
||||
// close(fd);
|
||||
// return -5;
|
||||
// }
|
||||
|
||||
current_off += (off_t) total;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user