fix: add return value
This commit is contained in:
parent
79031c47a2
commit
a70cceb440
|
@ -394,7 +394,7 @@ JNIEXPORT jlong JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqGetOffset(JNI
|
||||||
TAOS_RES *res = (TAOS_RES *)jres;
|
TAOS_RES *res = (TAOS_RES *)jres;
|
||||||
if (res == NULL) {
|
if (res == NULL) {
|
||||||
jniDebug("jobj:%p, invalid res handle", jobj);
|
jniDebug("jobj:%p, invalid res handle", jobj);
|
||||||
return NULL;
|
return -1;
|
||||||
}
|
}
|
||||||
return tmq_get_vgroup_offset(res);
|
return tmq_get_vgroup_offset(res);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue