Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

jni get return size

  • Loading branch information...
commit 1b587e60c62c4f2924bc97d97427c126561eca61 1 parent 8845eee
@believe3301 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  binding/lru_jni.c
View
3  binding/lru_jni.c
@@ -65,7 +65,8 @@ Java_com_feinno_kv_MemDB_get(JNIEnv *jenv, jobject clazz, jbyteArray jkey, jint
if (buf) {
(*jenv)->ReleaseByteArrayElements(jenv, jbuf, (jbyte*)buf, 0);
}
- return ret;
+
+ return ret ? 0 : sz;
}
/* remove */
Please sign in to comment.
Something went wrong with that request. Please try again.