request_metadata.c: check data_version > 0 for performance

replication_quorum
YuQing 2022-07-08 11:23:32 +08:00
parent 803d3cb626
commit 5da65a172c
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ static void *thread_run(void *arg)
arg, &data_version)) arg, &data_version))
{ {
process_master_side(ctx); process_master_side(ctx);
} else { } else if (data_version > 0) {
process_slave_side(ctx, data_version); process_slave_side(ctx, data_version);
} }

View File

@ -324,7 +324,7 @@ int sf_nio_notify(struct fast_task_info *task, const int stage)
if (task->continue_callback != NULL) { if (task->continue_callback != NULL) {
return task->continue_callback(task); return task->continue_callback(task);
} else { } else {
logWarning("file: "__FILE__", line: %d, " logDebug("file: "__FILE__", line: %d, "
"task %p, continue_callback is NULL", "task %p, continue_callback is NULL",
__LINE__, task); __LINE__, task);
return 0; return 0;