@@ -492,15 +492,11 @@ class ExecuteOnLeave {
492492};
493493
494494void cpBytesAndLengthInner (uint8_t *& pByte, jint*& pLength, const uint8_t * data, const int & length) {
495- fprintf (stderr, " Hfu5: cpBytesAndLengthInner start, length index %d, length %d, byte %p.\n " , *pLength, length, pByte);
496- fprintf (stdout, " Hfu5: cpBytesAndLengthInner start, length index %d, length %d, byte %p.\n " , *pLength, length, pByte);
497495 *pLength = length;
498496 pLength++;
499497
500498 memcpy (pByte, data, length);
501499 pByte += length;
502- fprintf (stderr, " Hfu5: cpBytesAndLengthInner end, length index %d, length %d, byte %p.\n " , *pLength, length, pByte);
503- fprintf (stdout, " Hfu5: cpBytesAndLengthInner end, length index %d, length %d, byte %p.\n " , *pLength, length, pByte);
504500}
505501
506502void cpBytesAndLength (uint8_t *& pByte, jint*& pLength, const FDBKey& key) {
@@ -538,19 +534,12 @@ JNIEXPORT jobject JNICALL Java_com_apple_foundationdb_FutureMappedResults_Future
538534 int kvm_count = kvm.getRange .m_size ;
539535
540536 const int totalLengths = 4 + kvm_count * 2 ;
541- fprintf (stderr, " Hfu5: index %d, totalLengths %d.\n " , i, totalLengths);
542- fprintf (stdout, " Hfu5: index %d, totalLengths %d.\n " , i, totalLengths);
543537
544538 int totalBytes = kvm.key .key_length + kvm.value .key_length + kvm.getRange .begin .key .key_length +
545539 kvm.getRange .end .key .key_length ;
546-
547- fprintf (stderr, " Hfu5: index %d, totalBytes %d.\n " , i, totalBytes);
548- fprintf (stdout, " Hfu5: index %d, totalBytes %d.\n " , i, totalBytes);
549540 for (int i = 0 ; i < kvm_count; i++) {
550541 auto kv = kvm.getRange .data [i];
551542 totalBytes += kv.key_length + kv.value_length ;
552- fprintf (stdout, " Hfu5: index %d, totalBytes each %d, key: %d, v: %d.\n " , i, totalBytes, kv.key_length , kv.value_length );
553- fprintf (stderr, " Hfu5: index %d, totalBytes each %d, key: %d, v: %d.\n " , i, totalBytes, kv.key_length , kv.value_length );
554543 }
555544
556545 jbyteArray bytesArray = jenv->NewByteArray (totalBytes);
@@ -598,9 +587,6 @@ JNIEXPORT jobject JNICALL Java_com_apple_foundationdb_FutureMappedResults_Future
598587 }
599588 }
600589 }
601- fprintf (stderr, " Hfu5: Finish %d.\n " , totalBytes);
602- fprintf (stdout, " Hfu5: Finish %d.\n " , totalBytes);
603-
604590 // After native arrays are released
605591 jobject mkv = jenv->CallStaticObjectMethod (
606592 mapped_key_value_class, mapped_key_value_from_bytes, (jbyteArray)bytesArray, (jintArray)lengthArray);
0 commit comments