request_metadata.c: check data_version > 0 for performance
parent
803d3cb626
commit
5da65a172c
|
|
@ -122,7 +122,7 @@ static void *thread_run(void *arg)
|
|||
arg, &data_version))
|
||||
{
|
||||
process_master_side(ctx);
|
||||
} else {
|
||||
} else if (data_version > 0) {
|
||||
process_slave_side(ctx, data_version);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@ int sf_nio_notify(struct fast_task_info *task, const int stage)
|
|||
if (task->continue_callback != NULL) {
|
||||
return task->continue_callback(task);
|
||||
} else {
|
||||
logWarning("file: "__FILE__", line: %d, "
|
||||
logDebug("file: "__FILE__", line: %d, "
|
||||
"task %p, continue_callback is NULL",
|
||||
__LINE__, task);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue